0s autopkgtest [10:31:11]: starting date and time: 2025-05-04 10:31:11+0000 0s autopkgtest [10:31:11]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [10:31:11]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.675vsphs/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3.13,src:dbus-python,src:libffi --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 dbus-python/1.4.0-1 libffi/3.4.8-2' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-9.secgroup --name adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 --image adt/ubuntu-questing-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 69s autopkgtest [10:32:20]: testbed dpkg architecture: ppc64el 69s autopkgtest [10:32:20]: testbed apt version: 3.0.0 70s autopkgtest [10:32:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 70s autopkgtest [10:32:21]: testbed release detected to be: None 70s autopkgtest [10:32:21]: updating testbed package index (apt update) 71s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 71s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 71s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 71s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 71s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 71s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 71s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 71s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 71s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 72s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 72s Fetched 2899 kB in 1s (2500 kB/s) 73s Reading package lists... 73s autopkgtest [10:32:24]: upgrading testbed (apt dist-upgrade and autopurge) 74s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 74s Starting 2 pkgProblemResolver with broken count: 0 74s Done 74s Entering ResolveByKeep 75s 75s Calculating upgrade... 75s The following packages will be upgraded: 75s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 75s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 75s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 75s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 75s Need to get 14.6 MB of archives. 75s After this operation, 214 kB disk space will be freed. 75s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 75s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 76s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 76s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 76s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 76s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 76s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 76s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 76s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 76s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 76s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 76s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 77s Fetched 14.6 MB in 2s (9020 kB/s) 77s (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 ... 107204 files and directories currently installed.) 77s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 77s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 77s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 77s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 77s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 77s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 77s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 77s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 77s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 77s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 78s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 78s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 78s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 78s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 78s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 78s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 78s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 78s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 78s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 78s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 78s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 78s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 78s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 78s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 78s Setting up python3-dbus (1.4.0-1) ... 79s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 79s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 79s Setting up libffi8:ppc64el (3.4.8-2) ... 79s Setting up python3.13-minimal (3.13.3-2) ... 79s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 79s Setting up publicsuffix (20250328.1952-0.1) ... 79s Setting up python3.13-gdbm (3.13.3-2) ... 79s Setting up libpython3.13:ppc64el (3.13.3-2) ... 79s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 79s Setting up python3.13 (3.13.3-2) ... 80s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 80s Processing triggers for systemd (257.4-1ubuntu3) ... 80s Processing triggers for man-db (2.13.0-1) ... 81s Processing triggers for libc-bin (2.41-6ubuntu1) ... 81s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s Starting pkgProblemResolver with broken count: 0 82s Starting 2 pkgProblemResolver with broken count: 0 82s Done 82s Solving dependencies... 82s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 85s autopkgtest [10:32:36]: testbed running kernel: Linux 6.14.0-15-generic #15-Ubuntu SMP Sun Apr 6 14:52:42 UTC 2025 85s autopkgtest [10:32:36]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 94s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (dsc) [4812 B] 94s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [661 kB] 94s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [5615 kB] 94s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (diff) [136 kB] 95s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 95s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 95s gpgv: Can't check signature: No public key 95s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 95s autopkgtest [10:32:46]: testing package glib2.0 version 2.84.1-1 99s autopkgtest [10:32:50]: build not needed 108s autopkgtest [10:32:59]: test build: preparing testbed 108s Reading package lists... 108s Building dependency tree... 108s Reading state information... 108s Starting pkgProblemResolver with broken count: 0 108s Starting 2 pkgProblemResolver with broken count: 0 108s Done 109s The following NEW packages will be installed: 109s build-essential cpp cpp-14 cpp-14-powerpc64le-linux-gnu 109s cpp-powerpc64le-linux-gnu g++ g++-14 g++-14-powerpc64le-linux-gnu 109s g++-powerpc64le-linux-gnu gcc gcc-14 gcc-14-powerpc64le-linux-gnu 109s gcc-powerpc64le-linux-gnu libasan8 libblkid-dev libcc1-0 libffi-dev 109s libgcc-14-dev libgio-2.0-dev libgomp1 libisl23 libitm1 liblsan0 libmount-dev 109s libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 109s libquadmath0 libselinux1-dev libsepol-dev libstdc++-14-dev 109s libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf pkgconf-bin uuid-dev 109s zlib1g-dev 109s 0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded. 109s Need to get 63.5 MB of archives. 109s After this operation, 235 MB of additional disk space will be used. 109s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 109s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 109s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [10.5 MB] 110s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-14 ppc64el 14.2.0-19ubuntu2 [1036 B] 110s Get:5 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [5566 B] 110s Get:6 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp ppc64el 4:14.2.0-1ubuntu1 [22.4 kB] 110s Get:7 http://ftpmaster.internal/ubuntu questing/main ppc64el libcc1-0 ppc64el 15-20250404-0ubuntu1 [48.6 kB] 110s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el libgomp1 ppc64el 15-20250404-0ubuntu1 [168 kB] 110s Get:9 http://ftpmaster.internal/ubuntu questing/main ppc64el libitm1 ppc64el 15-20250404-0ubuntu1 [32.3 kB] 110s Get:10 http://ftpmaster.internal/ubuntu questing/main ppc64el libasan8 ppc64el 15-20250404-0ubuntu1 [3007 kB] 110s Get:11 http://ftpmaster.internal/ubuntu questing/main ppc64el liblsan0 ppc64el 15-20250404-0ubuntu1 [1374 kB] 110s Get:12 http://ftpmaster.internal/ubuntu questing/main ppc64el libtsan2 ppc64el 15-20250404-0ubuntu1 [2732 kB] 110s Get:13 http://ftpmaster.internal/ubuntu questing/main ppc64el libubsan1 ppc64el 15-20250404-0ubuntu1 [1232 kB] 110s Get:14 http://ftpmaster.internal/ubuntu questing/main ppc64el libquadmath0 ppc64el 15-20250404-0ubuntu1 [160 kB] 110s Get:15 http://ftpmaster.internal/ubuntu questing/main ppc64el libgcc-14-dev ppc64el 14.2.0-19ubuntu2 [1618 kB] 110s Get:16 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [20.6 MB] 110s Get:17 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-14 ppc64el 14.2.0-19ubuntu2 [540 kB] 110s Get:18 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [1226 B] 110s Get:19 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc ppc64el 4:14.2.0-1ubuntu1 [5012 B] 110s Get:20 http://ftpmaster.internal/ubuntu questing/main ppc64el libstdc++-14-dev ppc64el 14.2.0-19ubuntu2 [2679 kB] 111s Get:21 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [12.0 MB] 111s Get:22 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-14 ppc64el 14.2.0-19ubuntu2 [23.0 kB] 111s Get:23 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [966 B] 111s Get:24 http://ftpmaster.internal/ubuntu questing/main ppc64el g++ ppc64el 4:14.2.0-1ubuntu1 [1088 B] 111s Get:25 http://ftpmaster.internal/ubuntu questing/main ppc64el build-essential ppc64el 12.12ubuntu1 [5094 B] 111s Get:26 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi-dev ppc64el 3.4.8-2 [67.7 kB] 111s Get:27 http://ftpmaster.internal/ubuntu questing/main ppc64el uuid-dev ppc64el 2.40.2-14ubuntu1 [56.7 kB] 111s Get:28 http://ftpmaster.internal/ubuntu questing/main ppc64el libblkid-dev ppc64el 2.40.2-14ubuntu1 [279 kB] 111s Get:29 http://ftpmaster.internal/ubuntu questing/main ppc64el libsepol-dev ppc64el 3.8.1-1 [505 kB] 111s Get:30 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-16-0 ppc64el 10.45-1 [286 kB] 111s Get:31 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-32-0 ppc64el 10.45-1 [269 kB] 111s Get:32 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-posix3 ppc64el 10.45-1 [7390 B] 111s Get:33 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-dev ppc64el 10.45-1 [921 kB] 111s Get:34 http://ftpmaster.internal/ubuntu questing/main ppc64el libselinux1-dev ppc64el 3.7-3ubuntu3 [194 kB] 111s Get:35 http://ftpmaster.internal/ubuntu questing/main ppc64el libmount-dev ppc64el 2.40.2-14ubuntu1 [34.6 kB] 111s Get:36 http://ftpmaster.internal/ubuntu questing/main ppc64el libsysprof-capture-4-dev ppc64el 48.0-2 [62.2 kB] 111s Get:37 http://ftpmaster.internal/ubuntu questing/main ppc64el libpkgconf3 ppc64el 1.8.1-4 [37.1 kB] 111s Get:38 http://ftpmaster.internal/ubuntu questing/main ppc64el pkgconf-bin ppc64el 1.8.1-4 [22.5 kB] 111s Get:39 http://ftpmaster.internal/ubuntu questing/main ppc64el pkgconf ppc64el 1.8.1-4 [16.7 kB] 111s Get:40 http://ftpmaster.internal/ubuntu questing/main ppc64el zlib1g-dev ppc64el 1:1.3.dfsg+really1.3.1-1ubuntu1 [902 kB] 111s Get:41 http://ftpmaster.internal/ubuntu questing/main ppc64el libgio-2.0-dev ppc64el 2.84.1-1 [2162 kB] 111s Fetched 63.5 MB in 2s (28.5 MB/s) 111s Selecting previously unselected package libisl23:ppc64el. 111s (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 ... 107204 files and directories currently installed.) 111s Preparing to unpack .../00-libisl23_0.27-1_ppc64el.deb ... 111s Unpacking libisl23:ppc64el (0.27-1) ... 111s Selecting previously unselected package libmpc3:ppc64el. 111s Preparing to unpack .../01-libmpc3_1.3.1-1build2_ppc64el.deb ... 111s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 111s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 111s Preparing to unpack .../02-cpp-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 111s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 112s Selecting previously unselected package cpp-14. 112s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_ppc64el.deb ... 112s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 112s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 112s Preparing to unpack .../04-cpp-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 112s Unpacking cpp-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 112s Selecting previously unselected package cpp. 112s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 112s Unpacking cpp (4:14.2.0-1ubuntu1) ... 112s Selecting previously unselected package libcc1-0:ppc64el. 112s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libcc1-0:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libgomp1:ppc64el. 112s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libgomp1:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libitm1:ppc64el. 112s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libitm1:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libasan8:ppc64el. 112s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libasan8:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package liblsan0:ppc64el. 112s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking liblsan0:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libtsan2:ppc64el. 112s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libtsan2:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libubsan1:ppc64el. 112s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libubsan1:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libquadmath0:ppc64el. 112s Preparing to unpack .../13-libquadmath0_15-20250404-0ubuntu1_ppc64el.deb ... 112s Unpacking libquadmath0:ppc64el (15-20250404-0ubuntu1) ... 112s Selecting previously unselected package libgcc-14-dev:ppc64el. 112s Preparing to unpack .../14-libgcc-14-dev_14.2.0-19ubuntu2_ppc64el.deb ... 112s Unpacking libgcc-14-dev:ppc64el (14.2.0-19ubuntu2) ... 112s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 112s Preparing to unpack .../15-gcc-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 112s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 112s Selecting previously unselected package gcc-14. 112s Preparing to unpack .../16-gcc-14_14.2.0-19ubuntu2_ppc64el.deb ... 112s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 112s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 112s Preparing to unpack .../17-gcc-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 112s Unpacking gcc-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 112s Selecting previously unselected package gcc. 112s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 112s Unpacking gcc (4:14.2.0-1ubuntu1) ... 112s Selecting previously unselected package libstdc++-14-dev:ppc64el. 112s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-19ubuntu2_ppc64el.deb ... 112s Unpacking libstdc++-14-dev:ppc64el (14.2.0-19ubuntu2) ... 113s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 113s Preparing to unpack .../20-g++-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 113s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 113s Selecting previously unselected package g++-14. 113s Preparing to unpack .../21-g++-14_14.2.0-19ubuntu2_ppc64el.deb ... 113s Unpacking g++-14 (14.2.0-19ubuntu2) ... 113s Selecting previously unselected package g++-powerpc64le-linux-gnu. 113s Preparing to unpack .../22-g++-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 113s Unpacking g++-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 113s Selecting previously unselected package g++. 113s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 113s Unpacking g++ (4:14.2.0-1ubuntu1) ... 113s Selecting previously unselected package build-essential. 113s Preparing to unpack .../24-build-essential_12.12ubuntu1_ppc64el.deb ... 113s Unpacking build-essential (12.12ubuntu1) ... 113s Selecting previously unselected package libffi-dev:ppc64el. 113s Preparing to unpack .../25-libffi-dev_3.4.8-2_ppc64el.deb ... 113s Unpacking libffi-dev:ppc64el (3.4.8-2) ... 113s Selecting previously unselected package uuid-dev:ppc64el. 113s Preparing to unpack .../26-uuid-dev_2.40.2-14ubuntu1_ppc64el.deb ... 113s Unpacking uuid-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Selecting previously unselected package libblkid-dev:ppc64el. 113s Preparing to unpack .../27-libblkid-dev_2.40.2-14ubuntu1_ppc64el.deb ... 113s Unpacking libblkid-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Selecting previously unselected package libsepol-dev:ppc64el. 113s Preparing to unpack .../28-libsepol-dev_3.8.1-1_ppc64el.deb ... 113s Unpacking libsepol-dev:ppc64el (3.8.1-1) ... 113s Selecting previously unselected package libpcre2-16-0:ppc64el. 113s Preparing to unpack .../29-libpcre2-16-0_10.45-1_ppc64el.deb ... 113s Unpacking libpcre2-16-0:ppc64el (10.45-1) ... 113s Selecting previously unselected package libpcre2-32-0:ppc64el. 113s Preparing to unpack .../30-libpcre2-32-0_10.45-1_ppc64el.deb ... 113s Unpacking libpcre2-32-0:ppc64el (10.45-1) ... 113s Selecting previously unselected package libpcre2-posix3:ppc64el. 113s Preparing to unpack .../31-libpcre2-posix3_10.45-1_ppc64el.deb ... 113s Unpacking libpcre2-posix3:ppc64el (10.45-1) ... 113s Selecting previously unselected package libpcre2-dev:ppc64el. 113s Preparing to unpack .../32-libpcre2-dev_10.45-1_ppc64el.deb ... 113s Unpacking libpcre2-dev:ppc64el (10.45-1) ... 113s Selecting previously unselected package libselinux1-dev:ppc64el. 113s Preparing to unpack .../33-libselinux1-dev_3.7-3ubuntu3_ppc64el.deb ... 113s Unpacking libselinux1-dev:ppc64el (3.7-3ubuntu3) ... 113s Selecting previously unselected package libmount-dev:ppc64el. 113s Preparing to unpack .../34-libmount-dev_2.40.2-14ubuntu1_ppc64el.deb ... 113s Unpacking libmount-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Selecting previously unselected package libsysprof-capture-4-dev:ppc64el. 113s Preparing to unpack .../35-libsysprof-capture-4-dev_48.0-2_ppc64el.deb ... 113s Unpacking libsysprof-capture-4-dev:ppc64el (48.0-2) ... 113s Selecting previously unselected package libpkgconf3:ppc64el. 113s Preparing to unpack .../36-libpkgconf3_1.8.1-4_ppc64el.deb ... 113s Unpacking libpkgconf3:ppc64el (1.8.1-4) ... 113s Selecting previously unselected package pkgconf-bin. 113s Preparing to unpack .../37-pkgconf-bin_1.8.1-4_ppc64el.deb ... 113s Unpacking pkgconf-bin (1.8.1-4) ... 113s Selecting previously unselected package pkgconf:ppc64el. 113s Preparing to unpack .../38-pkgconf_1.8.1-4_ppc64el.deb ... 113s Unpacking pkgconf:ppc64el (1.8.1-4) ... 113s Selecting previously unselected package zlib1g-dev:ppc64el. 113s Preparing to unpack .../39-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_ppc64el.deb ... 113s Unpacking zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 113s Selecting previously unselected package libgio-2.0-dev:ppc64el. 113s Preparing to unpack .../40-libgio-2.0-dev_2.84.1-1_ppc64el.deb ... 113s Unpacking libgio-2.0-dev:ppc64el (2.84.1-1) ... 113s Setting up libgomp1:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libffi-dev:ppc64el (3.4.8-2) ... 113s Setting up libpcre2-16-0:ppc64el (10.45-1) ... 113s Setting up libsysprof-capture-4-dev:ppc64el (48.0-2) ... 113s Setting up libpcre2-32-0:ppc64el (10.45-1) ... 113s Setting up libpkgconf3:ppc64el (1.8.1-4) ... 113s Setting up uuid-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Setting up libquadmath0:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 113s Setting up libsepol-dev:ppc64el (3.8.1-1) ... 113s Setting up pkgconf-bin (1.8.1-4) ... 113s Setting up libubsan1:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 113s Setting up libpcre2-posix3:ppc64el (10.45-1) ... 113s Setting up libasan8:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libtsan2:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libisl23:ppc64el (0.27-1) ... 113s Setting up libcc1-0:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up liblsan0:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libitm1:ppc64el (15-20250404-0ubuntu1) ... 113s Setting up libblkid-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Setting up libpcre2-dev:ppc64el (10.45-1) ... 113s Setting up libselinux1-dev:ppc64el (3.7-3ubuntu3) ... 113s Setting up pkgconf:ppc64el (1.8.1-4) ... 113s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 113s Setting up cpp-14 (14.2.0-19ubuntu2) ... 113s Setting up libgcc-14-dev:ppc64el (14.2.0-19ubuntu2) ... 113s Setting up libstdc++-14-dev:ppc64el (14.2.0-19ubuntu2) ... 113s Setting up libmount-dev:ppc64el (2.40.2-14ubuntu1) ... 113s Setting up cpp-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 113s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 113s Setting up libgio-2.0-dev:ppc64el (2.84.1-1) ... 113s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 113s Setting up gcc-14 (14.2.0-19ubuntu2) ... 113s Setting up gcc-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 113s Setting up cpp (4:14.2.0-1ubuntu1) ... 113s Setting up g++-14 (14.2.0-19ubuntu2) ... 113s Setting up g++-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 113s Setting up gcc (4:14.2.0-1ubuntu1) ... 113s Setting up g++ (4:14.2.0-1ubuntu1) ... 113s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 113s Setting up build-essential (12.12ubuntu1) ... 113s Processing triggers for libc-bin (2.41-6ubuntu1) ... 113s Processing triggers for man-db (2.13.0-1) ... 114s Processing triggers for libglib2.0-0t64:ppc64el (2.84.1-1) ... 114s No schema files found: doing nothing. 114s Processing triggers for install-info (7.1.1-1) ... 115s autopkgtest [10:33:06]: test build: [----------------------- 115s + mode=dynamic 115s + getopt -o --long static -n debian/tests/build -- 115s + getopt_temp= -- 115s + eval set -- -- 115s + set -- -- 115s + true 115s + shift 115s + break 115s + mktemp -d 115s + WORKDIR=/tmp/tmp.Bm5X1YtRrt 115s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 115s + cd /tmp/tmp.Bm5X1YtRrt 115s + [ -n ] 115s + CROSS_COMPILE= 115s + cat 115s + cat 115s + cat 115s + cat 115s + cat 115s + cat 115s + cflags= 115s + pcflags= 115s + packages=glib-2.0 115s + pkg-config --cflags --libs glib-2.0 115s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 116s build (glib, dynamic): OK 116s + echo build (glib, dynamic): OK 116s + [ -x glib-dynamic ] 116s + foo=bar ./glib-dynamic 116s run (glib, dynamic): OK 116s + echo run (glib, dynamic): OK 116s + cflags= 116s + pcflags= 116s + packages=gobject-2.0 116s + pkg-config --cflags --libs gobject-2.0 116s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 116s build (gobject, dynamic): OK 116s + echo build (gobject, dynamic): OK 116s + [ -x gobject-dynamic ] 116s + foo=bar ./gobject-dynamic 116s run (gobject, dynamic): OK 116s + echo run (gobject, dynamic): OK 116s + cflags= 116s + pcflags= 116s + packages=gio-2.0 116s + pkg-config --cflags --libs gio-2.0 116s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 116s build (gio, dynamic): OK 116s + echo build (gio, dynamic): OK 116s + [ -x gio-dynamic ] 116s + foo=bar ./gio-dynamic 116s run (gio, dynamic): OK 116s + echo run (gio, dynamic): OK 116s + cflags= 116s + pcflags= 116s + packages=gio-unix-2.0 116s + pkg-config --cflags --libs gio-unix-2.0 116s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 116s build (gio-unix, dynamic): OK 116s + echo build (gio-unix, dynamic): OK 116s + [ -x gio-unix-dynamic ] 116s + foo=bar ./gio-unix-dynamic 116s run (gio-unix, dynamic): OK 116s + echo run (gio-unix, dynamic): OK 116s + cflags= 116s + pcflags= 116s + packages=gmodule-2.0 116s + pkg-config --cflags --libs gmodule-2.0 116s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 116s build (gmodule, dynamic): OK 116s + echo build (gmodule, dynamic): OK 116s + [ -x gmodule-dynamic ] 116s + foo=bar ./gmodule-dynamic 116s run (gmodule, dynamic): OK 116s + echo run (gmodule, dynamic): OK 116s + cflags= 116s + pcflags= 116s + packages=gthread-2.0 116s + pkg-config --cflags --libs gthread-2.0 116s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 116s build (gthread, dynamic): OK 116s + echo build (gthread, dynamic): OK 116s + [ -x gthread-dynamic ] 116s + foo=bar ./gthread-dynamic 116s run (gthread, dynamic): OK 116s + echo run (gthread, dynamic): OK 116s + rm -rf /tmp/tmp.Bm5X1YtRrt 117s autopkgtest [10:33:08]: test build: -----------------------] 117s build PASS (superficial) 117s autopkgtest [10:33:08]: test build: - - - - - - - - - - results - - - - - - - - - - 117s autopkgtest [10:33:08]: test build-static: preparing testbed 118s Reading package lists... 118s Building dependency tree... 118s Reading state information... 118s Starting pkgProblemResolver with broken count: 0 118s Starting 2 pkgProblemResolver with broken count: 0 118s Done 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s autopkgtest [10:33:10]: test build-static: [----------------------- 119s + mode=dynamic 119s + getopt -o --long static -n debian/tests/build -- --static 119s + getopt_temp= --static -- 119s + eval set -- --static -- 119s + set -- --static -- 119s + true 119s + mode=static 119s + shift 119s + continue 119s + true 119s + shift 119s + break 119s + mktemp -d 119s + WORKDIR=/tmp/tmp.yMhV3DjPIN 119s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 119s + cd /tmp/tmp.yMhV3DjPIN 119s + [ -n ] 119s + CROSS_COMPILE= 119s + cat 119s + cat 119s + cat 119s + cat 119s + cat 119s + cat 119s + cflags= 119s + pcflags= 119s + packages=glib-2.0 119s + cflags=-static 119s + pcflags=--static 119s + pkg-config --static --cflags --libs glib-2.0 119s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 119s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 119s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 119s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 119s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s build (glib, static): OK 120s run (glib, static): OK 120s + echo build (glib, static): OK 120s + [ -x glib-static ] 120s + foo=bar ./glib-static 120s + echo run (glib, static): OK 120s + cflags= 120s + pcflags= 120s + packages=gobject-2.0 120s + cflags=-static 120s + pcflags=--static 120s + pkg-config --static --cflags --libs gobject-2.0 120s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 120s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 120s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s build (gobject, static): OK 120s run (gobject, static): OK 120s + echo build (gobject, static): OK 120s + [ -x gobject-static ] 120s + foo=bar ./gobject-static 120s + echo run (gobject, static): OK 120s + cflags= 120s + pcflags= 120s + packages=gio-2.0 120s + cflags=-static 120s + pcflags=--static 120s + continue 120s + cflags= 120s + pcflags= 120s + packages=gio-unix-2.0 120s + cflags=-static 120s + pcflags=--static 120s + continue 120s + cflags= 120s + pcflags= 120s + packages=gmodule-2.0 120s + cflags=-static 120s + pcflags=--static 120s + pkg-config --static --cflags --libs gmodule-2.0 120s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 120s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 120s (.text+0x904): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 120s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s build (gmodule, static): OK 120s + echo build (gmodule, static): OK 120s + [ -x gmodule-static ] 120s + foo=bar ./gmodule-static 120s + echo run (gmodule, static): OK 120s + cflags= 120s + pcflags= 120s + packages=gthread-2.0 120s + cflags=-static 120s + pcflags=--static 120s run (gmodule, static): OK 120s + pkg-config --static --cflags --libs gthread-2.0 120s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 120s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 120s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 120s + echo build (gthread, static): OK 120s + [ -x gthread-static ] 120s + foo=bar ./gthread-static 120s build (gthread, static): OK 120s + echo run (gthread, static): OKrun (gthread, static): OK 120s 120s + rm -rf /tmp/tmp.yMhV3DjPIN 120s autopkgtest [10:33:11]: test build-static: -----------------------] 121s build-static PASS (superficial) 121s autopkgtest [10:33:12]: test build-static: - - - - - - - - - - results - - - - - - - - - - 121s autopkgtest [10:33:12]: test girepository-tools: preparing testbed 262s autopkgtest [10:35:33]: testbed dpkg architecture: ppc64el 262s autopkgtest [10:35:33]: testbed apt version: 3.0.0 263s autopkgtest [10:35:34]: @@@@@@@@@@@@@@@@@@@@ test bed setup 263s autopkgtest [10:35:34]: testbed release detected to be: questing 264s autopkgtest [10:35:35]: updating testbed package index (apt update) 264s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 264s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 264s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 264s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 264s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 264s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 265s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 265s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 265s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 265s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 265s Fetched 2899 kB in 1s (2223 kB/s) 266s Reading package lists... 267s autopkgtest [10:35:38]: upgrading testbed (apt dist-upgrade and autopurge) 267s Reading package lists... 267s Building dependency tree... 267s Reading state information... 268s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 268s Starting 2 pkgProblemResolver with broken count: 0 268s Done 268s Entering ResolveByKeep 268s 268s Calculating upgrade... 268s The following packages will be upgraded: 268s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 268s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 268s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 269s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 269s Need to get 14.6 MB of archives. 269s After this operation, 214 kB disk space will be freed. 269s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 269s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 269s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 270s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 270s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 270s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 270s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 270s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 270s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 270s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 271s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 271s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 271s Fetched 14.6 MB in 2s (6814 kB/s) 271s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 107204 files and directories currently installed.) 271s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 271s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 271s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 271s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 272s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 272s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 272s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 272s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 272s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 272s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 272s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 272s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 272s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 272s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 272s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 272s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 272s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 272s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 272s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 272s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 273s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 273s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 273s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 273s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 273s Setting up python3-dbus (1.4.0-1) ... 273s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 273s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 273s Setting up libffi8:ppc64el (3.4.8-2) ... 273s Setting up python3.13-minimal (3.13.3-2) ... 274s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 274s Setting up publicsuffix (20250328.1952-0.1) ... 274s Setting up python3.13-gdbm (3.13.3-2) ... 274s Setting up libpython3.13:ppc64el (3.13.3-2) ... 274s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 274s Setting up python3.13 (3.13.3-2) ... 275s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 275s Processing triggers for systemd (257.4-1ubuntu3) ... 275s Processing triggers for man-db (2.13.0-1) ... 276s Processing triggers for libc-bin (2.41-6ubuntu1) ... 276s Reading package lists... 276s Building dependency tree... 276s Reading state information... 277s Starting pkgProblemResolver with broken count: 0 277s Starting 2 pkgProblemResolver with broken count: 0 277s Done 277s Solving dependencies... 277s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 280s Reading package lists... 280s Building dependency tree... 280s Reading state information... 280s Starting pkgProblemResolver with broken count: 0 280s Starting 2 pkgProblemResolver with broken count: 0 280s Done 281s The following NEW packages will be installed: 281s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 281s native-architecture 281s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 281s Need to get 1083 kB of archives. 281s After this operation, 13.0 MB of additional disk space will be used. 281s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.84.1-1 [862 kB] 281s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el native-architecture all 0.2.6 [2140 B] 281s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el libgirepository-2.0-0 ppc64el 2.84.1-1 [85.0 kB] 281s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el girepository-tools ppc64el 2.84.1-1 [133 kB] 282s Fetched 1083 kB in 1s (1700 kB/s) 282s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 282s (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 ... 107204 files and directories currently installed.) 282s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_ppc64el.deb ... 282s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 282s Selecting previously unselected package native-architecture. 282s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 282s Unpacking native-architecture (0.2.6) ... 282s Selecting previously unselected package libgirepository-2.0-0:ppc64el. 282s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_ppc64el.deb ... 282s Unpacking libgirepository-2.0-0:ppc64el (2.84.1-1) ... 282s Selecting previously unselected package girepository-tools:ppc64el. 282s Preparing to unpack .../girepository-tools_2.84.1-1_ppc64el.deb ... 282s Unpacking girepository-tools:ppc64el (2.84.1-1) ... 282s Setting up native-architecture (0.2.6) ... 282s Setting up libgirepository-2.0-0:ppc64el (2.84.1-1) ... 282s Setting up gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 282s Setting up girepository-tools:ppc64el (2.84.1-1) ... 282s Processing triggers for man-db (2.13.0-1) ... 282s Processing triggers for libc-bin (2.41-6ubuntu1) ... 288s autopkgtest [10:35:59]: test girepository-tools: [----------------------- 288s + cd /tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 288s + dpkg-architecture -qDEB_HOST_GNU_TYPE 288s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 288s + DEB_HOST_GNU_TYPE=powerpc64le-linux-gnu 288s + dpkg-architecture -qDEB_HOST_MULTIARCH 288s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 288s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 288s + powerpc64le-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 288s typelib: GLib-2.0 288s + powerpc64le-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 288s + powerpc64le-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 289s autopkgtest [10:36:00]: test girepository-tools: -----------------------] 289s autopkgtest [10:36:00]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 289s girepository-tools PASS (superficial) 289s autopkgtest [10:36:00]: test libgio-2.0-dev-bin: preparing testbed 403s autopkgtest [10:37:54]: testbed dpkg architecture: ppc64el 403s autopkgtest [10:37:54]: testbed apt version: 3.0.0 403s autopkgtest [10:37:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 404s autopkgtest [10:37:55]: testbed release detected to be: questing 404s autopkgtest [10:37:55]: updating testbed package index (apt update) 405s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 405s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 405s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 405s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 405s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 405s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 405s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 405s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 405s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 405s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 406s Fetched 2899 kB in 1s (2507 kB/s) 407s Reading package lists... 407s autopkgtest [10:37:58]: upgrading testbed (apt dist-upgrade and autopurge) 407s Reading package lists... 407s Building dependency tree... 407s Reading state information... 408s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 408s Starting 2 pkgProblemResolver with broken count: 0 408s Done 408s Entering ResolveByKeep 409s 409s Calculating upgrade... 409s The following packages will be upgraded: 409s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 409s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 409s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 409s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 409s Need to get 14.6 MB of archives. 409s After this operation, 214 kB disk space will be freed. 409s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 409s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 409s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 410s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 410s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 410s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 410s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 410s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 410s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 410s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 410s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 410s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 410s Fetched 14.6 MB in 1s (11.0 MB/s) 411s (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 ... 107204 files and directories currently installed.) 411s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 411s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 411s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 411s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 411s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 411s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 411s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 411s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 411s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 411s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 411s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 411s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 411s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 412s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 412s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 412s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 412s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 412s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 412s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 412s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 412s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 412s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 412s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 412s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 412s Setting up python3-dbus (1.4.0-1) ... 412s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 412s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 412s Setting up libffi8:ppc64el (3.4.8-2) ... 412s Setting up python3.13-minimal (3.13.3-2) ... 413s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 413s Setting up publicsuffix (20250328.1952-0.1) ... 413s Setting up python3.13-gdbm (3.13.3-2) ... 413s Setting up libpython3.13:ppc64el (3.13.3-2) ... 413s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 413s Setting up python3.13 (3.13.3-2) ... 414s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 414s Processing triggers for systemd (257.4-1ubuntu3) ... 414s Processing triggers for man-db (2.13.0-1) ... 415s Processing triggers for libc-bin (2.41-6ubuntu1) ... 415s Reading package lists... 415s Building dependency tree... 415s Reading state information... 416s Starting pkgProblemResolver with broken count: 0 416s Starting 2 pkgProblemResolver with broken count: 0 416s Done 416s Solving dependencies... 416s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 419s Reading package lists... 419s Building dependency tree... 419s Reading state information... 419s Starting pkgProblemResolver with broken count: 0 419s Starting 2 pkgProblemResolver with broken count: 0 419s Done 420s The following NEW packages will be installed: 420s libgio-2.0-dev-bin python3-packaging 420s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 420s Need to get 183 kB of archives. 420s After this operation, 1068 kB of additional disk space will be used. 420s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 420s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el libgio-2.0-dev-bin ppc64el 2.84.1-1 [131 kB] 420s Fetched 183 kB in 0s (445 kB/s) 420s Selecting previously unselected package python3-packaging. 421s (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 ... 107204 files and directories currently installed.) 421s Preparing to unpack .../python3-packaging_24.2-1_all.deb ... 421s Unpacking python3-packaging (24.2-1) ... 421s Selecting previously unselected package libgio-2.0-dev-bin. 421s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_ppc64el.deb ... 421s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 421s Setting up python3-packaging (24.2-1) ... 421s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 421s Processing triggers for man-db (2.13.0-1) ... 432s autopkgtest [10:38:23]: test libgio-2.0-dev-bin: [----------------------- 432s + gdbus-codegen --help 432s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 432s [--c-namespace NAMESPACE] [--c-generate-object-manager] 432s [--c-generate-autocleanup {none,objects,all}] 432s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 432s [--generate-rst OUTFILES] [--pragma-once] 432s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 432s [--glib-min-required VERSION] 432s [--glib-max-allowed VERSION] 432s [--symbol-decorator SYMBOL_DECORATOR] 432s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 432s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 432s [--generate-c-code OUTFILES | --header | --body | 432s --interface-info-header | --interface-info-body] 432s [--output FILE | --output-directory OUTDIR] 432s FILE [FILE ...] 432s 432s D-Bus code and documentation generator 432s 432s positional arguments: 432s FILE D-Bus introspection XML file 432s 432s options: 432s -h, --help show this help message and exit 432s --interface-prefix PREFIX 432s String to strip from D-Bus interface names for code 432s and docs 432s --c-namespace NAMESPACE 432s The namespace to use for generated C code 432s --c-generate-object-manager 432s Generate a GDBusObjectManagerClient subclass when 432s generating C code 432s --c-generate-autocleanup {none,objects,all} 432s Generate autocleanup support 432s --generate-docbook OUTFILES 432s Generate Docbook in OUTFILES-org.Project.IFace.xml 432s --generate-md OUTFILES 432s Generate Markdown in OUTFILES-org.Project.IFace.md 432s --generate-rst OUTFILES 432s Generate reStructuredText in OUTFILES- 432s org.Project.IFace.rst 432s --pragma-once Use "pragma once" as the inclusion guard 432s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 432s Add annotation (may be used several times) 432s --glib-min-required VERSION 432s Minimum version of GLib to be supported by the 432s outputted code (default: 2.30) 432s --glib-max-allowed VERSION 432s Maximum version of GLib to be used by the outputted 432s code (default: current GLib version) 432s --symbol-decorator SYMBOL_DECORATOR 432s Macro used to decorate a symbol in the outputted 432s header, possibly to export symbols 432s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 432s Additional header required for decorator specified by 432s --symbol-decorator 432s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 432s Additional define required for decorator specified by 432s --symbol-decorator 432s --generate-c-code OUTFILES 432s Generate C code in OUTFILES.[ch] 432s --header Generate C headers 432s --body Generate C code 432s --interface-info-header 432s Generate GDBusInterfaceInfo C header 432s --interface-info-body 432s Generate GDBusInterfaceInfo C code 432s --output FILE Write output into the specified file 432s --output-directory OUTDIR 432s Location to output generated files 432s + glib-compile-resources --version 432s 2.84.1 432s + glib-genmarshal --version 432s glib-genmarshal version 2.84.1 432s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 432s You may redistribute copies of glib-genmarshal under the terms of 432s the GNU General Public License which can be found in the 432s GLib source package. Sources, examples and contact 432s information are available at http://www.gtk.org 432s + glib-gettextize --version 432s + glib-mkenums --version 432s /usr/bin/glib-gettextize (GNU glib) 2.84.1 432s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 432s This is free software; see the source for copying conditions. There is NO 432s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 432s Written by Ulrich Drepper 432s + gobject-query tree 432s glib-mkenums version 2.84.1 432s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 432s You may redistribute copies of glib-mkenums under the terms of 432s the GNU General Public License which can be found in the 432s GLib source package. Sources, examples and contact 432s information are available at http://www.gtk.org 432s + gtester --version 432s GObject 432s + gtester-report --version 432s gtester version 2.84.1 432s gtester-report (GLib utils) version 2.84.1. 433s autopkgtest [10:38:24]: test libgio-2.0-dev-bin: -----------------------] 433s libgio-2.0-dev-bin PASS (superficial) 433s autopkgtest [10:38:24]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 433s autopkgtest [10:38:24]: test libglib2.0-dev: preparing testbed 591s autopkgtest [10:41:02]: testbed dpkg architecture: ppc64el 592s autopkgtest [10:41:03]: testbed apt version: 3.0.0 592s autopkgtest [10:41:03]: @@@@@@@@@@@@@@@@@@@@ test bed setup 592s autopkgtest [10:41:03]: testbed release detected to be: questing 593s autopkgtest [10:41:04]: updating testbed package index (apt update) 593s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 593s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 593s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 593s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 594s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 594s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 594s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 594s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 594s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 594s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 594s Fetched 2899 kB in 1s (2460 kB/s) 595s Reading package lists... 596s autopkgtest [10:41:07]: upgrading testbed (apt dist-upgrade and autopurge) 596s Reading package lists... 596s Building dependency tree... 596s Reading state information... 597s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 597s Starting 2 pkgProblemResolver with broken count: 0 597s Done 597s Entering ResolveByKeep 598s 598s Calculating upgrade... 598s The following packages will be upgraded: 598s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 598s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 598s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 598s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 598s Need to get 14.6 MB of archives. 598s After this operation, 214 kB disk space will be freed. 598s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 599s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 599s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 599s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 599s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 599s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 599s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 599s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 599s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 599s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 599s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 600s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 600s Fetched 14.6 MB in 2s (9417 kB/s) 600s (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 ... 107204 files and directories currently installed.) 600s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 600s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 600s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 600s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 600s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 601s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 601s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 601s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 601s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 601s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 601s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 601s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 601s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 601s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 601s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 601s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 601s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 601s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 601s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 601s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 602s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 602s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 602s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 602s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 602s Setting up python3-dbus (1.4.0-1) ... 602s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 602s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 602s Setting up libffi8:ppc64el (3.4.8-2) ... 602s Setting up python3.13-minimal (3.13.3-2) ... 603s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 603s Setting up publicsuffix (20250328.1952-0.1) ... 603s Setting up python3.13-gdbm (3.13.3-2) ... 603s Setting up libpython3.13:ppc64el (3.13.3-2) ... 603s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 603s Setting up python3.13 (3.13.3-2) ... 604s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 604s Processing triggers for systemd (257.4-1ubuntu3) ... 604s Processing triggers for man-db (2.13.0-1) ... 605s Processing triggers for libc-bin (2.41-6ubuntu1) ... 605s Reading package lists... 605s Building dependency tree... 605s Reading state information... 606s Starting pkgProblemResolver with broken count: 0 606s Starting 2 pkgProblemResolver with broken count: 0 606s Done 606s Solving dependencies... 606s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 609s Reading package lists... 609s Building dependency tree... 609s Reading state information... 610s Starting pkgProblemResolver with broken count: 0 610s Starting 2 pkgProblemResolver with broken count: 0 610s Done 610s The following NEW packages will be installed: 610s build-essential cpp cpp-14 cpp-14-powerpc64le-linux-gnu 610s cpp-powerpc64le-linux-gnu g++ g++-14 g++-14-powerpc64le-linux-gnu 610s g++-powerpc64le-linux-gnu gcc gcc-14 gcc-14-powerpc64le-linux-gnu 610s gcc-powerpc64le-linux-gnu gir1.2-glib-2.0-dev girepository-tools libasan8 610s libblkid-dev libcc1-0 libffi-dev libgcc-14-dev libgio-2.0-dev 610s libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin libglib2.0-dev 610s libglib2.0-dev-bin libgomp1 libisl23 libitm1 liblsan0 libmount-dev libmpc3 610s libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 610s libquadmath0 libselinux1-dev libsepol-dev libstdc++-14-dev 610s libsysprof-capture-4-dev libtsan2 libubsan1 native-architecture pkgconf 610s pkgconf-bin python3-packaging uuid-dev zlib1g-dev 610s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 610s Need to get 64.9 MB of archives. 610s After this operation, 250 MB of additional disk space will be used. 610s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 611s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 611s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [10.5 MB] 611s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-14 ppc64el 14.2.0-19ubuntu2 [1036 B] 611s Get:5 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [5566 B] 611s Get:6 http://ftpmaster.internal/ubuntu questing/main ppc64el cpp ppc64el 4:14.2.0-1ubuntu1 [22.4 kB] 611s Get:7 http://ftpmaster.internal/ubuntu questing/main ppc64el libcc1-0 ppc64el 15-20250404-0ubuntu1 [48.6 kB] 611s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el libgomp1 ppc64el 15-20250404-0ubuntu1 [168 kB] 611s Get:9 http://ftpmaster.internal/ubuntu questing/main ppc64el libitm1 ppc64el 15-20250404-0ubuntu1 [32.3 kB] 611s Get:10 http://ftpmaster.internal/ubuntu questing/main ppc64el libasan8 ppc64el 15-20250404-0ubuntu1 [3007 kB] 611s Get:11 http://ftpmaster.internal/ubuntu questing/main ppc64el liblsan0 ppc64el 15-20250404-0ubuntu1 [1374 kB] 611s Get:12 http://ftpmaster.internal/ubuntu questing/main ppc64el libtsan2 ppc64el 15-20250404-0ubuntu1 [2732 kB] 612s Get:13 http://ftpmaster.internal/ubuntu questing/main ppc64el libubsan1 ppc64el 15-20250404-0ubuntu1 [1232 kB] 612s Get:14 http://ftpmaster.internal/ubuntu questing/main ppc64el libquadmath0 ppc64el 15-20250404-0ubuntu1 [160 kB] 612s Get:15 http://ftpmaster.internal/ubuntu questing/main ppc64el libgcc-14-dev ppc64el 14.2.0-19ubuntu2 [1618 kB] 612s Get:16 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [20.6 MB] 613s Get:17 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-14 ppc64el 14.2.0-19ubuntu2 [540 kB] 613s Get:18 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [1226 B] 613s Get:19 http://ftpmaster.internal/ubuntu questing/main ppc64el gcc ppc64el 4:14.2.0-1ubuntu1 [5012 B] 613s Get:20 http://ftpmaster.internal/ubuntu questing/main ppc64el libstdc++-14-dev ppc64el 14.2.0-19ubuntu2 [2679 kB] 613s Get:21 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-19ubuntu2 [12.0 MB] 614s Get:22 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-14 ppc64el 14.2.0-19ubuntu2 [23.0 kB] 614s Get:23 http://ftpmaster.internal/ubuntu questing/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.2.0-1ubuntu1 [966 B] 614s Get:24 http://ftpmaster.internal/ubuntu questing/main ppc64el g++ ppc64el 4:14.2.0-1ubuntu1 [1088 B] 614s Get:25 http://ftpmaster.internal/ubuntu questing/main ppc64el build-essential ppc64el 12.12ubuntu1 [5094 B] 614s Get:26 http://ftpmaster.internal/ubuntu questing/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.84.1-1 [862 kB] 614s Get:27 http://ftpmaster.internal/ubuntu questing/main ppc64el native-architecture all 0.2.6 [2140 B] 614s Get:28 http://ftpmaster.internal/ubuntu questing/main ppc64el libgirepository-2.0-0 ppc64el 2.84.1-1 [85.0 kB] 614s Get:29 http://ftpmaster.internal/ubuntu questing/main ppc64el girepository-tools ppc64el 2.84.1-1 [133 kB] 614s Get:30 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi-dev ppc64el 3.4.8-2 [67.7 kB] 614s Get:31 http://ftpmaster.internal/ubuntu questing/main ppc64el uuid-dev ppc64el 2.40.2-14ubuntu1 [56.7 kB] 614s Get:32 http://ftpmaster.internal/ubuntu questing/main ppc64el libblkid-dev ppc64el 2.40.2-14ubuntu1 [279 kB] 614s Get:33 http://ftpmaster.internal/ubuntu questing/main ppc64el libsepol-dev ppc64el 3.8.1-1 [505 kB] 614s Get:34 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-16-0 ppc64el 10.45-1 [286 kB] 614s Get:35 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-32-0 ppc64el 10.45-1 [269 kB] 614s Get:36 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-posix3 ppc64el 10.45-1 [7390 B] 614s Get:37 http://ftpmaster.internal/ubuntu questing/main ppc64el libpcre2-dev ppc64el 10.45-1 [921 kB] 614s Get:38 http://ftpmaster.internal/ubuntu questing/main ppc64el libselinux1-dev ppc64el 3.7-3ubuntu3 [194 kB] 614s Get:39 http://ftpmaster.internal/ubuntu questing/main ppc64el libmount-dev ppc64el 2.40.2-14ubuntu1 [34.6 kB] 614s Get:40 http://ftpmaster.internal/ubuntu questing/main ppc64el libsysprof-capture-4-dev ppc64el 48.0-2 [62.2 kB] 614s Get:41 http://ftpmaster.internal/ubuntu questing/main ppc64el libpkgconf3 ppc64el 1.8.1-4 [37.1 kB] 614s Get:42 http://ftpmaster.internal/ubuntu questing/main ppc64el pkgconf-bin ppc64el 1.8.1-4 [22.5 kB] 614s Get:43 http://ftpmaster.internal/ubuntu questing/main ppc64el pkgconf ppc64el 1.8.1-4 [16.7 kB] 614s Get:44 http://ftpmaster.internal/ubuntu questing/main ppc64el zlib1g-dev ppc64el 1:1.3.dfsg+really1.3.1-1ubuntu1 [902 kB] 614s Get:45 http://ftpmaster.internal/ubuntu questing/main ppc64el libgio-2.0-dev ppc64el 2.84.1-1 [2162 kB] 614s Get:46 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 614s Get:47 http://ftpmaster.internal/ubuntu questing/main ppc64el libgio-2.0-dev-bin ppc64el 2.84.1-1 [131 kB] 614s Get:48 http://ftpmaster.internal/ubuntu questing/main ppc64el libglib2.0-bin ppc64el 2.84.1-1 [111 kB] 614s Get:49 http://ftpmaster.internal/ubuntu questing/main ppc64el libglib2.0-dev-bin ppc64el 2.84.1-1 [18.1 kB] 614s Get:50 http://ftpmaster.internal/ubuntu questing/main ppc64el libglib2.0-dev ppc64el 2.84.1-1 [18.9 kB] 614s Fetched 64.9 MB in 4s (16.0 MB/s) 615s Selecting previously unselected package libisl23:ppc64el. 615s (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 ... 107204 files and directories currently installed.) 615s Preparing to unpack .../00-libisl23_0.27-1_ppc64el.deb ... 615s Unpacking libisl23:ppc64el (0.27-1) ... 615s Selecting previously unselected package libmpc3:ppc64el. 615s Preparing to unpack .../01-libmpc3_1.3.1-1build2_ppc64el.deb ... 615s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 615s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 615s Preparing to unpack .../02-cpp-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 615s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 615s Selecting previously unselected package cpp-14. 615s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_ppc64el.deb ... 615s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 615s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 615s Preparing to unpack .../04-cpp-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 615s Unpacking cpp-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 615s Selecting previously unselected package cpp. 615s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 615s Unpacking cpp (4:14.2.0-1ubuntu1) ... 615s Selecting previously unselected package libcc1-0:ppc64el. 615s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libcc1-0:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libgomp1:ppc64el. 615s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libgomp1:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libitm1:ppc64el. 615s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libitm1:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libasan8:ppc64el. 615s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libasan8:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package liblsan0:ppc64el. 615s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking liblsan0:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libtsan2:ppc64el. 615s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libtsan2:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libubsan1:ppc64el. 615s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libubsan1:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libquadmath0:ppc64el. 615s Preparing to unpack .../13-libquadmath0_15-20250404-0ubuntu1_ppc64el.deb ... 615s Unpacking libquadmath0:ppc64el (15-20250404-0ubuntu1) ... 615s Selecting previously unselected package libgcc-14-dev:ppc64el. 615s Preparing to unpack .../14-libgcc-14-dev_14.2.0-19ubuntu2_ppc64el.deb ... 615s Unpacking libgcc-14-dev:ppc64el (14.2.0-19ubuntu2) ... 615s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 615s Preparing to unpack .../15-gcc-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 615s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 616s Selecting previously unselected package gcc-14. 616s Preparing to unpack .../16-gcc-14_14.2.0-19ubuntu2_ppc64el.deb ... 616s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 616s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 616s Preparing to unpack .../17-gcc-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 616s Unpacking gcc-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 616s Selecting previously unselected package gcc. 616s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 616s Unpacking gcc (4:14.2.0-1ubuntu1) ... 616s Selecting previously unselected package libstdc++-14-dev:ppc64el. 616s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-19ubuntu2_ppc64el.deb ... 616s Unpacking libstdc++-14-dev:ppc64el (14.2.0-19ubuntu2) ... 616s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 616s Preparing to unpack .../20-g++-14-powerpc64le-linux-gnu_14.2.0-19ubuntu2_ppc64el.deb ... 616s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 616s Selecting previously unselected package g++-14. 616s Preparing to unpack .../21-g++-14_14.2.0-19ubuntu2_ppc64el.deb ... 616s Unpacking g++-14 (14.2.0-19ubuntu2) ... 616s Selecting previously unselected package g++-powerpc64le-linux-gnu. 616s Preparing to unpack .../22-g++-powerpc64le-linux-gnu_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 616s Unpacking g++-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 616s Selecting previously unselected package g++. 616s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_ppc64el.deb ... 616s Unpacking g++ (4:14.2.0-1ubuntu1) ... 616s Selecting previously unselected package build-essential. 616s Preparing to unpack .../24-build-essential_12.12ubuntu1_ppc64el.deb ... 616s Unpacking build-essential (12.12ubuntu1) ... 616s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 616s Preparing to unpack .../25-gir1.2-glib-2.0-dev_2.84.1-1_ppc64el.deb ... 616s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 616s Selecting previously unselected package native-architecture. 616s Preparing to unpack .../26-native-architecture_0.2.6_all.deb ... 616s Unpacking native-architecture (0.2.6) ... 616s Selecting previously unselected package libgirepository-2.0-0:ppc64el. 616s Preparing to unpack .../27-libgirepository-2.0-0_2.84.1-1_ppc64el.deb ... 616s Unpacking libgirepository-2.0-0:ppc64el (2.84.1-1) ... 616s Selecting previously unselected package girepository-tools:ppc64el. 616s Preparing to unpack .../28-girepository-tools_2.84.1-1_ppc64el.deb ... 616s Unpacking girepository-tools:ppc64el (2.84.1-1) ... 616s Selecting previously unselected package libffi-dev:ppc64el. 616s Preparing to unpack .../29-libffi-dev_3.4.8-2_ppc64el.deb ... 616s Unpacking libffi-dev:ppc64el (3.4.8-2) ... 616s Selecting previously unselected package uuid-dev:ppc64el. 617s Preparing to unpack .../30-uuid-dev_2.40.2-14ubuntu1_ppc64el.deb ... 617s Unpacking uuid-dev:ppc64el (2.40.2-14ubuntu1) ... 617s Selecting previously unselected package libblkid-dev:ppc64el. 617s Preparing to unpack .../31-libblkid-dev_2.40.2-14ubuntu1_ppc64el.deb ... 617s Unpacking libblkid-dev:ppc64el (2.40.2-14ubuntu1) ... 617s Selecting previously unselected package libsepol-dev:ppc64el. 617s Preparing to unpack .../32-libsepol-dev_3.8.1-1_ppc64el.deb ... 617s Unpacking libsepol-dev:ppc64el (3.8.1-1) ... 617s Selecting previously unselected package libpcre2-16-0:ppc64el. 617s Preparing to unpack .../33-libpcre2-16-0_10.45-1_ppc64el.deb ... 617s Unpacking libpcre2-16-0:ppc64el (10.45-1) ... 617s Selecting previously unselected package libpcre2-32-0:ppc64el. 617s Preparing to unpack .../34-libpcre2-32-0_10.45-1_ppc64el.deb ... 617s Unpacking libpcre2-32-0:ppc64el (10.45-1) ... 617s Selecting previously unselected package libpcre2-posix3:ppc64el. 617s Preparing to unpack .../35-libpcre2-posix3_10.45-1_ppc64el.deb ... 617s Unpacking libpcre2-posix3:ppc64el (10.45-1) ... 617s Selecting previously unselected package libpcre2-dev:ppc64el. 617s Preparing to unpack .../36-libpcre2-dev_10.45-1_ppc64el.deb ... 617s Unpacking libpcre2-dev:ppc64el (10.45-1) ... 617s Selecting previously unselected package libselinux1-dev:ppc64el. 617s Preparing to unpack .../37-libselinux1-dev_3.7-3ubuntu3_ppc64el.deb ... 617s Unpacking libselinux1-dev:ppc64el (3.7-3ubuntu3) ... 617s Selecting previously unselected package libmount-dev:ppc64el. 617s Preparing to unpack .../38-libmount-dev_2.40.2-14ubuntu1_ppc64el.deb ... 617s Unpacking libmount-dev:ppc64el (2.40.2-14ubuntu1) ... 617s Selecting previously unselected package libsysprof-capture-4-dev:ppc64el. 617s Preparing to unpack .../39-libsysprof-capture-4-dev_48.0-2_ppc64el.deb ... 617s Unpacking libsysprof-capture-4-dev:ppc64el (48.0-2) ... 617s Selecting previously unselected package libpkgconf3:ppc64el. 617s Preparing to unpack .../40-libpkgconf3_1.8.1-4_ppc64el.deb ... 617s Unpacking libpkgconf3:ppc64el (1.8.1-4) ... 617s Selecting previously unselected package pkgconf-bin. 617s Preparing to unpack .../41-pkgconf-bin_1.8.1-4_ppc64el.deb ... 617s Unpacking pkgconf-bin (1.8.1-4) ... 617s Selecting previously unselected package pkgconf:ppc64el. 617s Preparing to unpack .../42-pkgconf_1.8.1-4_ppc64el.deb ... 617s Unpacking pkgconf:ppc64el (1.8.1-4) ... 617s Selecting previously unselected package zlib1g-dev:ppc64el. 617s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_ppc64el.deb ... 617s Unpacking zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 617s Selecting previously unselected package libgio-2.0-dev:ppc64el. 617s Preparing to unpack .../44-libgio-2.0-dev_2.84.1-1_ppc64el.deb ... 617s Unpacking libgio-2.0-dev:ppc64el (2.84.1-1) ... 617s Selecting previously unselected package python3-packaging. 617s Preparing to unpack .../45-python3-packaging_24.2-1_all.deb ... 617s Unpacking python3-packaging (24.2-1) ... 617s Selecting previously unselected package libgio-2.0-dev-bin. 617s Preparing to unpack .../46-libgio-2.0-dev-bin_2.84.1-1_ppc64el.deb ... 617s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 617s Selecting previously unselected package libglib2.0-bin. 617s Preparing to unpack .../47-libglib2.0-bin_2.84.1-1_ppc64el.deb ... 617s Unpacking libglib2.0-bin (2.84.1-1) ... 617s Selecting previously unselected package libglib2.0-dev-bin. 617s Preparing to unpack .../48-libglib2.0-dev-bin_2.84.1-1_ppc64el.deb ... 617s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 617s Selecting previously unselected package libglib2.0-dev:ppc64el. 617s Preparing to unpack .../49-libglib2.0-dev_2.84.1-1_ppc64el.deb ... 617s Unpacking libglib2.0-dev:ppc64el (2.84.1-1) ... 617s Setting up native-architecture (0.2.6) ... 617s Setting up libgirepository-2.0-0:ppc64el (2.84.1-1) ... 617s Setting up libglib2.0-bin (2.84.1-1) ... 617s Setting up libgomp1:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libffi-dev:ppc64el (3.4.8-2) ... 617s Setting up libpcre2-16-0:ppc64el (10.45-1) ... 617s Setting up libsysprof-capture-4-dev:ppc64el (48.0-2) ... 617s Setting up libpcre2-32-0:ppc64el (10.45-1) ... 617s Setting up python3-packaging (24.2-1) ... 617s Setting up libpkgconf3:ppc64el (1.8.1-4) ... 617s Setting up uuid-dev:ppc64el (2.40.2-14ubuntu1) ... 617s Setting up libquadmath0:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 617s Setting up libsepol-dev:ppc64el (3.8.1-1) ... 617s Setting up pkgconf-bin (1.8.1-4) ... 617s Setting up libubsan1:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 617s Setting up libpcre2-posix3:ppc64el (10.45-1) ... 617s Setting up gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 617s Setting up libasan8:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libtsan2:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libisl23:ppc64el (0.27-1) ... 617s Setting up libcc1-0:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up liblsan0:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libitm1:ppc64el (15-20250404-0ubuntu1) ... 617s Setting up libblkid-dev:ppc64el (2.40.2-14ubuntu1) ... 617s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 618s Setting up girepository-tools:ppc64el (2.84.1-1) ... 618s Setting up libpcre2-dev:ppc64el (10.45-1) ... 618s Setting up libselinux1-dev:ppc64el (3.7-3ubuntu3) ... 618s Setting up pkgconf:ppc64el (1.8.1-4) ... 618s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 618s Setting up cpp-14 (14.2.0-19ubuntu2) ... 618s Setting up libgcc-14-dev:ppc64el (14.2.0-19ubuntu2) ... 618s Setting up libstdc++-14-dev:ppc64el (14.2.0-19ubuntu2) ... 618s Setting up libmount-dev:ppc64el (2.40.2-14ubuntu1) ... 618s Setting up cpp-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 618s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 618s Setting up libglib2.0-dev-bin (2.84.1-1) ... 618s Setting up libgio-2.0-dev:ppc64el (2.84.1-1) ... 618s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-19ubuntu2) ... 618s Setting up gcc-14 (14.2.0-19ubuntu2) ... 618s Setting up gcc-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 618s Setting up cpp (4:14.2.0-1ubuntu1) ... 618s Setting up g++-14 (14.2.0-19ubuntu2) ... 618s Setting up g++-powerpc64le-linux-gnu (4:14.2.0-1ubuntu1) ... 618s Setting up gcc (4:14.2.0-1ubuntu1) ... 618s Setting up g++ (4:14.2.0-1ubuntu1) ... 618s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 618s Setting up build-essential (12.12ubuntu1) ... 618s Processing triggers for install-info (7.1.1-1) ... 618s Processing triggers for libc-bin (2.41-6ubuntu1) ... 618s Processing triggers for man-db (2.13.0-1) ... 619s Processing triggers for libglib2.0-0t64:ppc64el (2.84.1-1) ... 619s No schema files found: doing nothing. 619s Setting up libglib2.0-dev:ppc64el (2.84.1-1) ... 626s autopkgtest [10:41:37]: test libglib2.0-dev: [----------------------- 626s + debian/tests/build 626s + mode=dynamic 626s + getopt -o --long static -n debian/tests/build -- 626s + getopt_temp= -- 626s + eval set -- -- 626s + set -- -- 626s + true 626s + shift 626s + break 626s + mktemp -d 626s + WORKDIR=/tmp/tmp.TijyPurykR 626s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 626s + cd /tmp/tmp.TijyPurykR 626s + [ -n ] 626s + CROSS_COMPILE= 626s + cat 626s + cat 626s + cat 626s + cat 626s + cat 626s + cat 626s + cflags= 626s + pcflags= 626s + packages=glib-2.0 626s + pkg-config --cflags --libs glib-2.0 626s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 626s + echo build (glib, dynamic): OK 626s + [ -x glib-dynamic ] 626s + foo=bar ./glib-dynamic 626s build (glib, dynamic): OK 626s + echo run (glib, dynamic): OK 626s + run (glib, dynamic): OK 626s cflags= 626s + pcflags= 626s + packages=gobject-2.0 626s + pkg-config --cflags --libs gobject-2.0 626s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 626s + build (gobject, dynamic): OK 626s echo build (gobject, dynamic): OK 626s + [ -x gobject-dynamic ] 626s + foo=bar ./gobject-dynamic 626s + echo run (gobject, dynamic): OK 626s + cflags= 626s + run (gobject, dynamic): OK 626s pcflags= 626s + packages=gio-2.0 626s + pkg-config --cflags --libs gio-2.0 626s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 626s build (gio, dynamic): OK 626s + echo build (gio, dynamic): OK 626s + [ -x gio-dynamic ] 626s + foo=bar ./gio-dynamic 626s + echo run (gio, dynamic): OK 626s run (gio, dynamic): OK 626s + cflags= 626s + pcflags= 626s + packages=gio-unix-2.0 626s + pkg-config --cflags --libs gio-unix-2.0 626s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 627s + echo build (gio-unix, dynamic): OK 627s + [ -x gio-unix-dynamic ] 627s + foo=bar ./gio-unix-dynamic 627s build (gio-unix, dynamic): OK 627s run (gio-unix, dynamic): OK 627s + echo run (gio-unix, dynamic): OK 627s + cflags= 627s + pcflags= 627s + packages=gmodule-2.0 627s + pkg-config --cflags --libs gmodule-2.0 627s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 627s + echo build (gmodule, dynamic): OK 627s + [ -x gmodule-dynamic ] 627s + foo=bar ./gmodule-dynamic 627s build (gmodule, dynamic): OK 627s + echo run (gmodule, dynamic): OK 627s + cflags= 627s + pcflags= 627s + packages=gthread-2.0 627s run (gmodule, dynamic): OK 627s + pkg-config --cflags --libs gthread-2.0 627s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 627s + echo build (gthread, dynamic): OK 627s + [ -x gthread-dynamic ] 627s + foo=bar ./gthread-dynamic 627s build (gthread, dynamic): OK 627s + echo run (gthread, dynamic): OK 627s run (gthread, dynamic): OK 627s + rm -rf /tmp/tmp.TijyPurykR 627s + debian/tests/build-static 627s + mode=dynamic 627s + getopt -o --long static -n debian/tests/build -- --static 627s + getopt_temp= --static -- 627s + eval set -- --static -- 627s + set -- --static -- 627s + true 627s + mode=static 627s + shift 627s + continue 627s + true 627s + shift 627s + break 627s + mktemp -d 627s + WORKDIR=/tmp/tmp.GQ1OtMe1oH 627s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 627s + cd /tmp/tmp.GQ1OtMe1oH 627s + [ -n ] 627s + CROSS_COMPILE= 627s + cat 627s + cat 627s + cat 627s + cat 627s + cat 627s + cat 627s + cflags= 627s + pcflags= 627s + packages=glib-2.0 627s + cflags=-static 627s + pcflags=--static 627s + pkg-config --static --cflags --libs glib-2.0 627s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 627s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 627s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s + echo build (glib, static): OK 627s + [ -x glib-static ] 627s + foo=bar ./glib-static 627s build (glib, static): OK 627s + echo run (glib, static): OK 627s + cflags= 627s + pcflags= 627s + packages=gobject-2.0 627s + cflags=-static 627s + pcflags=--static 627s run (glib, static): OK 627s + pkg-config --static --cflags --libs gobject-2.0 627s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 627s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 627s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s build (gobject, static): OK 627s + echo build (gobject, static): OK 627s + [ -x gobject-static ] 627s + foo=bar ./gobject-static 627s + echorun (gobject, static): OK 627s run (gobject, static): OK 627s + cflags= 627s + pcflags= 627s + packages=gio-2.0 627s + cflags=-static 627s + pcflags=--static 627s + continue 627s + cflags= 627s + pcflags= 627s + packages=gio-unix-2.0 627s + cflags=-static 627s + pcflags=--static 627s + continue 627s + cflags= 627s + pcflags= 627s + packages=gmodule-2.0 627s + cflags=-static 627s + pcflags=--static 627s + pkg-config --static --cflags --libs gmodule-2.0 627s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 627s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 627s (.text+0x904): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 627s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 627s build (gmodule, static): OK 627s run (gmodule, static): OK 627s + echo build (gmodule, static): OK 627s + [ -x gmodule-static ] 627s + foo=bar ./gmodule-static 627s + echo run (gmodule, static): OK 627s + cflags= 627s + pcflags= 627s + packages=gthread-2.0 627s + cflags=-static 627s + pcflags=--static 627s + pkg-config --static --cflags --libs gthread-2.0 627s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 628s /usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 628s (.text+0x150): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 628s /usr/bin/ld: (.text+0x428): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 628s /usr/bin/ld: (.text+0x194): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 628s build (gthread, static): OK 628s + echo build (gthread, static): OK 628s + [ -x gthread-static ] 628s + foo=bar ./gthread-static 628s + echo run (gthread, static): OK 628s + rm -rf /tmp/tmp.GQ1OtMe1oH 628s run (gthread, static): OK 628s + debian/tests/girepository-tools 628s + cd /tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 628s + dpkg-architecture -qDEB_HOST_GNU_TYPE 628s + DEB_HOST_GNU_TYPE=powerpc64le-linux-gnu 628s + dpkg-architecture -qDEB_HOST_MULTIARCH 628s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 628s + powerpc64le-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 628s typelib: GLib-2.0 628s + powerpc64le-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 628s + powerpc64le-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 628s + debian/tests/libgio-2.0-dev-bin 628s + gdbus-codegen --help 628s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 628s [--c-namespace NAMESPACE] [--c-generate-object-manager] 628s [--c-generate-autocleanup {none,objects,all}] 628s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 628s [--generate-rst OUTFILES] [--pragma-once] 628s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 628s [--glib-min-required VERSION] 628s [--glib-max-allowed VERSION] 628s [--symbol-decorator SYMBOL_DECORATOR] 628s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 628s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 628s [--generate-c-code OUTFILES | --header | --body | 628s --interface-info-header | --interface-info-body] 628s [--output FILE | --output-directory OUTDIR] 628s FILE [FILE ...] 628s 628s D-Bus code and documentation generator 628s 628s positional arguments: 628s FILE D-Bus introspection XML file 628s 628s options: 628s -h, --help show this help message and exit 628s --interface-prefix PREFIX 628s String to strip from D-Bus interface names for code 628s and docs 628s --c-namespace NAMESPACE 628s The namespace to use for generated C code 628s --c-generate-object-manager 628s Generate a GDBusObjectManagerClient subclass when 628s generating C code 628s --c-generate-autocleanup {none,objects,all} 628s Generate autocleanup support 628s --generate-docbook OUTFILES 628s Generate Docbook in OUTFILES-org.Project.IFace.xml 628s --generate-md OUTFILES 628s Generate Markdown in OUTFILES-org.Project.IFace.md 628s --generate-rst OUTFILES 628s Generate reStructuredText in OUTFILES- 628s org.Project.IFace.rst 628s --pragma-once Use "pragma once" as the inclusion guard 628s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 628s Add annotation (may be used several times) 628s --glib-min-required VERSION 628s Minimum version of GLib to be supported by the 628s outputted code (default: 2.30) 628s --glib-max-allowed VERSION 628s Maximum version of GLib to be used by the outputted 628s code (default: current GLib version) 628s --symbol-decorator SYMBOL_DECORATOR 628s Macro used to decorate a symbol in the outputted 628s header, possibly to export symbols 628s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 628s Additional header required for decorator specified by 628s --symbol-decorator 628s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 628s Additional define required for decorator specified by 628s --symbol-decorator 628s --generate-c-code OUTFILES 628s Generate C code in OUTFILES.[ch] 628s --header Generate C headers 628s --body Generate C code 628s --interface-info-header 628s Generate GDBusInterfaceInfo C header 628s --interface-info-body 628s Generate GDBusInterfaceInfo C code 628s --output FILE Write output into the specified file 628s --output-directory OUTDIR 628s Location to output generated files 628s + glib-compile-resources --version 628s 2.84.1 628s + glib-genmarshal --version 628s glib-genmarshal version 2.84.1 628s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 628s You may redistribute copies of glib-genmarshal under the terms of 628s the GNU General Public License which can be found in the 628s GLib source package. Sources, examples and contact 628s information are available at http://www.gtk.org 628s + glib-gettextize --version 628s /usr/bin/glib-gettextize (GNU glib) 2.84.1 628s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 628s This is free software; see the source for copying conditions. There is NO 628s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 628s Written by Ulrich Drepper 628s + glib-mkenums --version 628s glib-mkenums version 2.84.1 628s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 628s You may redistribute copies of glib-mkenums under the terms of 628s the GNU General Public License which can be found in the 628s GLib source package. Sources, examples and contact 628s information are available at http://www.gtk.org 628s + gobject-query tree 628s + gtester --version 628s GObject 628s gtester version 2.84.1 628s + gtester-report --version 628s gtester-report (GLib utils) version 2.84.1. 628s + cd /tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 628s + dpkg-architecture -qDEB_HOST_MULTIARCH 628s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 628s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 628s typelib: GLib-2.0 628s + gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 629s + gi-decompile-typelib -o GLib.gir GLib.typelib 629s autopkgtest [10:41:40]: test libglib2.0-dev: -----------------------] 629s autopkgtest [10:41:40]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 629s libglib2.0-dev PASS (superficial) 630s autopkgtest [10:41:41]: test installed-tests: preparing testbed 731s autopkgtest [10:43:22]: testbed dpkg architecture: ppc64el 731s autopkgtest [10:43:22]: testbed apt version: 3.0.0 731s autopkgtest [10:43:22]: @@@@@@@@@@@@@@@@@@@@ test bed setup 731s autopkgtest [10:43:22]: testbed release detected to be: questing 732s autopkgtest [10:43:23]: updating testbed package index (apt update) 733s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 733s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 733s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 733s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 733s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 733s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 733s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 733s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 733s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 733s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 734s Fetched 2899 kB in 1s (2546 kB/s) 735s Reading package lists... 735s autopkgtest [10:43:26]: upgrading testbed (apt dist-upgrade and autopurge) 735s Reading package lists... 736s Building dependency tree... 736s Reading state information... 736s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 737s Starting 2 pkgProblemResolver with broken count: 0 737s Done 737s Entering ResolveByKeep 738s 738s Calculating upgrade... 738s The following packages will be upgraded: 738s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 738s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 738s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 738s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 738s Need to get 14.6 MB of archives. 738s After this operation, 214 kB disk space will be freed. 738s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 739s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 739s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 739s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 739s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 739s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 739s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 739s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 739s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 739s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 739s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 739s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 739s Fetched 14.6 MB in 1s (14.6 MB/s) 740s (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 ... 107204 files and directories currently installed.) 740s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 740s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 740s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 740s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 740s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 740s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 740s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 740s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 740s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 740s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 741s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 741s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 741s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 741s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 741s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 741s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 741s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 741s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 741s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 741s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 741s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 741s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 741s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 741s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 741s Setting up python3-dbus (1.4.0-1) ... 742s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 742s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 742s Setting up libffi8:ppc64el (3.4.8-2) ... 742s Setting up python3.13-minimal (3.13.3-2) ... 742s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 742s Setting up publicsuffix (20250328.1952-0.1) ... 742s Setting up python3.13-gdbm (3.13.3-2) ... 743s Setting up libpython3.13:ppc64el (3.13.3-2) ... 743s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 743s Setting up python3.13 (3.13.3-2) ... 744s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 744s Processing triggers for systemd (257.4-1ubuntu3) ... 744s Processing triggers for man-db (2.13.0-1) ... 744s Processing triggers for libc-bin (2.41-6ubuntu1) ... 745s Reading package lists... 745s Building dependency tree... 745s Reading state information... 745s Starting pkgProblemResolver with broken count: 0 745s Starting 2 pkgProblemResolver with broken count: 0 745s Done 746s Solving dependencies... 746s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 749s Reading package lists... 749s Building dependency tree... 749s Reading state information... 749s Starting pkgProblemResolver with broken count: 0 749s Starting 2 pkgProblemResolver with broken count: 0 749s Done 750s The following NEW packages will be installed: 750s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 750s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin 750s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 750s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 750s libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 libxaw7 750s libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 750s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 750s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 750s native-architecture python3-dbusmock python3-packaging tzdata-legacy 750s x11-common x11-xkb-utils xserver-common xvfb 750s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 750s Need to get 16.8 MB of archives. 750s After this operation, 101 MB of additional disk space will be used. 750s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el dbus-x11 ppc64el 1.16.2-2ubuntu1 [24.3 kB] 750s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el desktop-file-utils ppc64el 0.28-1 [62.3 kB] 750s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.84.1-1 [862 kB] 750s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el native-architecture all 0.2.6 [2140 B] 750s Get:5 http://ftpmaster.internal/ubuntu questing/main ppc64el libgirepository-2.0-0 ppc64el 2.84.1-1 [85.0 kB] 750s Get:6 http://ftpmaster.internal/ubuntu questing/main ppc64el girepository-tools ppc64el 2.84.1-1 [133 kB] 750s Get:7 http://ftpmaster.internal/ubuntu questing/universe ppc64el gnome-desktop-testing ppc64el 2021.1-4 [17.7 kB] 750s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el libfontenc1 ppc64el 1:1.1.8-1build1 [15.8 kB] 750s Get:9 http://ftpmaster.internal/ubuntu questing/main ppc64el libwayland-server0 ppc64el 1.23.1-3 [42.4 kB] 750s Get:10 http://ftpmaster.internal/ubuntu questing/main ppc64el libx11-xcb1 ppc64el 2:1.8.10-2 [8008 B] 750s Get:11 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-dri3-0 ppc64el 1.17.0-2 [7842 B] 750s Get:12 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-present0 ppc64el 1.17.0-2 [6276 B] 750s Get:13 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-randr0 ppc64el 1.17.0-2 [19.1 kB] 750s Get:14 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-sync1 ppc64el 1.17.0-2 [9804 B] 750s Get:15 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-xfixes0 ppc64el 1.17.0-2 [10.7 kB] 750s Get:16 http://ftpmaster.internal/ubuntu questing/main ppc64el libxshmfence1 ppc64el 1.3.3-1 [5364 B] 750s Get:17 http://ftpmaster.internal/ubuntu questing/main ppc64el mesa-libgallium ppc64el 25.0.3-1ubuntu2 [9535 kB] 751s Get:18 http://ftpmaster.internal/ubuntu questing/main ppc64el libgbm1 ppc64el 25.0.3-1ubuntu2 [39.1 kB] 751s Get:19 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 751s Get:20 http://ftpmaster.internal/ubuntu questing/main ppc64el libgio-2.0-dev-bin ppc64el 2.84.1-1 [131 kB] 751s Get:21 http://ftpmaster.internal/ubuntu questing/main ppc64el libvulkan1 ppc64el 1.4.309.0-1 [162 kB] 751s Get:22 http://ftpmaster.internal/ubuntu questing/main ppc64el libgl1-mesa-dri ppc64el 25.0.3-1ubuntu2 [35.1 kB] 751s Get:23 http://ftpmaster.internal/ubuntu questing/main ppc64el libglib2.0-bin ppc64el 2.84.1-1 [111 kB] 751s Get:24 http://ftpmaster.internal/ubuntu questing/main ppc64el libglib2.0-dev-bin ppc64el 2.84.1-1 [18.1 kB] 751s Get:25 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-dbusmock all 0.34.3-1 [92.4 kB] 751s Get:26 http://ftpmaster.internal/ubuntu questing/main ppc64el tzdata-legacy all 2025b-1ubuntu1 [99.2 kB] 751s Get:27 http://ftpmaster.internal/ubuntu questing/universe ppc64el libglib2.0-tests ppc64el 2.84.1-1 [2271 kB] 752s Get:28 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-glx0 ppc64el 1.17.0-2 [26.3 kB] 752s Get:29 http://ftpmaster.internal/ubuntu questing/main ppc64el libxcb-shm0 ppc64el 1.17.0-2 [5980 B] 752s Get:30 http://ftpmaster.internal/ubuntu questing/main ppc64el libxxf86vm1 ppc64el 1:1.1.4-1build4 [11.1 kB] 752s Get:31 http://ftpmaster.internal/ubuntu questing/main ppc64el libglx-mesa0 ppc64el 25.0.3-1ubuntu2 [175 kB] 752s Get:32 http://ftpmaster.internal/ubuntu questing/main ppc64el x11-common all 1:7.7+23ubuntu4 [21.8 kB] 752s Get:33 http://ftpmaster.internal/ubuntu questing/main ppc64el libice6 ppc64el 2:1.1.1-1 [49.9 kB] 752s Get:34 http://ftpmaster.internal/ubuntu questing/main ppc64el libpixman-1-0 ppc64el 0.44.0-3 [334 kB] 752s Get:35 http://ftpmaster.internal/ubuntu questing/main ppc64el libsm6 ppc64el 2:1.2.4-1 [18.4 kB] 752s Get:36 http://ftpmaster.internal/ubuntu questing/main ppc64el libxt6t64 ppc64el 1:1.2.1-1.2build1 [202 kB] 752s Get:37 http://ftpmaster.internal/ubuntu questing/main ppc64el libxmu6 ppc64el 2:1.1.3-3build2 [56.8 kB] 752s Get:38 http://ftpmaster.internal/ubuntu questing/main ppc64el libxpm4 ppc64el 1:3.5.17-1build2 [49.9 kB] 752s Get:39 http://ftpmaster.internal/ubuntu questing/main ppc64el libxaw7 ppc64el 2:1.0.16-1 [230 kB] 752s Get:40 http://ftpmaster.internal/ubuntu questing/main ppc64el libxfont2 ppc64el 1:2.0.6-1build1 [116 kB] 752s Get:41 http://ftpmaster.internal/ubuntu questing/main ppc64el libxkbfile1 ppc64el 1:1.1.0-1build4 [88.9 kB] 752s Get:42 http://ftpmaster.internal/ubuntu questing/main ppc64el libxrender1 ppc64el 1:0.9.10-1.1build1 [23.1 kB] 752s Get:43 http://ftpmaster.internal/ubuntu questing/main ppc64el libxrandr2 ppc64el 2:1.5.4-1 [21.7 kB] 752s Get:44 http://ftpmaster.internal/ubuntu questing/main ppc64el x11-xkb-utils ppc64el 7.7+9 [201 kB] 752s Get:45 http://ftpmaster.internal/ubuntu questing/main ppc64el xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 752s Get:46 http://ftpmaster.internal/ubuntu questing/main ppc64el libglvnd0 ppc64el 1.7.0-1build1 [72.4 kB] 752s Get:47 http://ftpmaster.internal/ubuntu questing/main ppc64el libglx0 ppc64el 1.7.0-1build1 [42.7 kB] 752s Get:48 http://ftpmaster.internal/ubuntu questing/main ppc64el libgl1 ppc64el 1.7.0-1build1 [107 kB] 752s Get:49 http://ftpmaster.internal/ubuntu questing/universe ppc64el xvfb ppc64el 2:21.1.16-1ubuntu1 [1101 kB] 752s Fetched 16.8 MB in 2s (7740 kB/s) 752s Selecting previously unselected package dbus-x11. 752s (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 ... 107204 files and directories currently installed.) 752s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_ppc64el.deb ... 752s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 753s Selecting previously unselected package desktop-file-utils. 753s Preparing to unpack .../01-desktop-file-utils_0.28-1_ppc64el.deb ... 753s Unpacking desktop-file-utils (0.28-1) ... 753s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 753s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_ppc64el.deb ... 753s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 753s Selecting previously unselected package native-architecture. 753s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 753s Unpacking native-architecture (0.2.6) ... 753s Selecting previously unselected package libgirepository-2.0-0:ppc64el. 753s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_ppc64el.deb ... 753s Unpacking libgirepository-2.0-0:ppc64el (2.84.1-1) ... 753s Selecting previously unselected package girepository-tools:ppc64el. 753s Preparing to unpack .../05-girepository-tools_2.84.1-1_ppc64el.deb ... 753s Unpacking girepository-tools:ppc64el (2.84.1-1) ... 753s Selecting previously unselected package gnome-desktop-testing. 753s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_ppc64el.deb ... 753s Unpacking gnome-desktop-testing (2021.1-4) ... 753s Selecting previously unselected package libfontenc1:ppc64el. 753s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_ppc64el.deb ... 753s Unpacking libfontenc1:ppc64el (1:1.1.8-1build1) ... 753s Selecting previously unselected package libwayland-server0:ppc64el. 753s Preparing to unpack .../08-libwayland-server0_1.23.1-3_ppc64el.deb ... 753s Unpacking libwayland-server0:ppc64el (1.23.1-3) ... 753s Selecting previously unselected package libx11-xcb1:ppc64el. 753s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.10-2_ppc64el.deb ... 753s Unpacking libx11-xcb1:ppc64el (2:1.8.10-2) ... 753s Selecting previously unselected package libxcb-dri3-0:ppc64el. 753s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2_ppc64el.deb ... 753s Unpacking libxcb-dri3-0:ppc64el (1.17.0-2) ... 753s Selecting previously unselected package libxcb-present0:ppc64el. 753s Preparing to unpack .../11-libxcb-present0_1.17.0-2_ppc64el.deb ... 753s Unpacking libxcb-present0:ppc64el (1.17.0-2) ... 753s Selecting previously unselected package libxcb-randr0:ppc64el. 753s Preparing to unpack .../12-libxcb-randr0_1.17.0-2_ppc64el.deb ... 753s Unpacking libxcb-randr0:ppc64el (1.17.0-2) ... 753s Selecting previously unselected package libxcb-sync1:ppc64el. 753s Preparing to unpack .../13-libxcb-sync1_1.17.0-2_ppc64el.deb ... 753s Unpacking libxcb-sync1:ppc64el (1.17.0-2) ... 753s Selecting previously unselected package libxcb-xfixes0:ppc64el. 753s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2_ppc64el.deb ... 753s Unpacking libxcb-xfixes0:ppc64el (1.17.0-2) ... 753s Selecting previously unselected package libxshmfence1:ppc64el. 753s Preparing to unpack .../15-libxshmfence1_1.3.3-1_ppc64el.deb ... 753s Unpacking libxshmfence1:ppc64el (1.3.3-1) ... 753s Selecting previously unselected package mesa-libgallium:ppc64el. 753s Preparing to unpack .../16-mesa-libgallium_25.0.3-1ubuntu2_ppc64el.deb ... 753s Unpacking mesa-libgallium:ppc64el (25.0.3-1ubuntu2) ... 753s Selecting previously unselected package libgbm1:ppc64el. 753s Preparing to unpack .../17-libgbm1_25.0.3-1ubuntu2_ppc64el.deb ... 753s Unpacking libgbm1:ppc64el (25.0.3-1ubuntu2) ... 753s Selecting previously unselected package python3-packaging. 753s Preparing to unpack .../18-python3-packaging_24.2-1_all.deb ... 753s Unpacking python3-packaging (24.2-1) ... 753s Selecting previously unselected package libgio-2.0-dev-bin. 753s Preparing to unpack .../19-libgio-2.0-dev-bin_2.84.1-1_ppc64el.deb ... 753s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 753s Selecting previously unselected package libvulkan1:ppc64el. 753s Preparing to unpack .../20-libvulkan1_1.4.309.0-1_ppc64el.deb ... 753s Unpacking libvulkan1:ppc64el (1.4.309.0-1) ... 753s Selecting previously unselected package libgl1-mesa-dri:ppc64el. 753s Preparing to unpack .../21-libgl1-mesa-dri_25.0.3-1ubuntu2_ppc64el.deb ... 753s Unpacking libgl1-mesa-dri:ppc64el (25.0.3-1ubuntu2) ... 753s Selecting previously unselected package libglib2.0-bin. 753s Preparing to unpack .../22-libglib2.0-bin_2.84.1-1_ppc64el.deb ... 753s Unpacking libglib2.0-bin (2.84.1-1) ... 753s Selecting previously unselected package libglib2.0-dev-bin. 753s Preparing to unpack .../23-libglib2.0-dev-bin_2.84.1-1_ppc64el.deb ... 753s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 753s Selecting previously unselected package python3-dbusmock. 753s Preparing to unpack .../24-python3-dbusmock_0.34.3-1_all.deb ... 753s Unpacking python3-dbusmock (0.34.3-1) ... 753s Selecting previously unselected package tzdata-legacy. 753s Preparing to unpack .../25-tzdata-legacy_2025b-1ubuntu1_all.deb ... 753s Unpacking tzdata-legacy (2025b-1ubuntu1) ... 753s Selecting previously unselected package libglib2.0-tests. 753s Preparing to unpack .../26-libglib2.0-tests_2.84.1-1_ppc64el.deb ... 753s Unpacking libglib2.0-tests (2.84.1-1) ... 754s Selecting previously unselected package libxcb-glx0:ppc64el. 754s Preparing to unpack .../27-libxcb-glx0_1.17.0-2_ppc64el.deb ... 754s Unpacking libxcb-glx0:ppc64el (1.17.0-2) ... 754s Selecting previously unselected package libxcb-shm0:ppc64el. 754s Preparing to unpack .../28-libxcb-shm0_1.17.0-2_ppc64el.deb ... 754s Unpacking libxcb-shm0:ppc64el (1.17.0-2) ... 754s Selecting previously unselected package libxxf86vm1:ppc64el. 754s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_ppc64el.deb ... 754s Unpacking libxxf86vm1:ppc64el (1:1.1.4-1build4) ... 754s Selecting previously unselected package libglx-mesa0:ppc64el. 754s Preparing to unpack .../30-libglx-mesa0_25.0.3-1ubuntu2_ppc64el.deb ... 754s Unpacking libglx-mesa0:ppc64el (25.0.3-1ubuntu2) ... 754s Selecting previously unselected package x11-common. 754s Preparing to unpack .../31-x11-common_1%3a7.7+23ubuntu4_all.deb ... 754s Unpacking x11-common (1:7.7+23ubuntu4) ... 754s Selecting previously unselected package libice6:ppc64el. 754s Preparing to unpack .../32-libice6_2%3a1.1.1-1_ppc64el.deb ... 754s Unpacking libice6:ppc64el (2:1.1.1-1) ... 754s Selecting previously unselected package libpixman-1-0:ppc64el. 754s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_ppc64el.deb ... 754s Unpacking libpixman-1-0:ppc64el (0.44.0-3) ... 754s Selecting previously unselected package libsm6:ppc64el. 754s Preparing to unpack .../34-libsm6_2%3a1.2.4-1_ppc64el.deb ... 754s Unpacking libsm6:ppc64el (2:1.2.4-1) ... 754s Selecting previously unselected package libxt6t64:ppc64el. 754s Preparing to unpack .../35-libxt6t64_1%3a1.2.1-1.2build1_ppc64el.deb ... 754s Unpacking libxt6t64:ppc64el (1:1.2.1-1.2build1) ... 754s Selecting previously unselected package libxmu6:ppc64el. 754s Preparing to unpack .../36-libxmu6_2%3a1.1.3-3build2_ppc64el.deb ... 754s Unpacking libxmu6:ppc64el (2:1.1.3-3build2) ... 754s Selecting previously unselected package libxpm4:ppc64el. 754s Preparing to unpack .../37-libxpm4_1%3a3.5.17-1build2_ppc64el.deb ... 754s Unpacking libxpm4:ppc64el (1:3.5.17-1build2) ... 754s Selecting previously unselected package libxaw7:ppc64el. 754s Preparing to unpack .../38-libxaw7_2%3a1.0.16-1_ppc64el.deb ... 754s Unpacking libxaw7:ppc64el (2:1.0.16-1) ... 754s Selecting previously unselected package libxfont2:ppc64el. 754s Preparing to unpack .../39-libxfont2_1%3a2.0.6-1build1_ppc64el.deb ... 754s Unpacking libxfont2:ppc64el (1:2.0.6-1build1) ... 754s Selecting previously unselected package libxkbfile1:ppc64el. 754s Preparing to unpack .../40-libxkbfile1_1%3a1.1.0-1build4_ppc64el.deb ... 754s Unpacking libxkbfile1:ppc64el (1:1.1.0-1build4) ... 754s Selecting previously unselected package libxrender1:ppc64el. 754s Preparing to unpack .../41-libxrender1_1%3a0.9.10-1.1build1_ppc64el.deb ... 754s Unpacking libxrender1:ppc64el (1:0.9.10-1.1build1) ... 754s Selecting previously unselected package libxrandr2:ppc64el. 754s Preparing to unpack .../42-libxrandr2_2%3a1.5.4-1_ppc64el.deb ... 754s Unpacking libxrandr2:ppc64el (2:1.5.4-1) ... 754s Selecting previously unselected package x11-xkb-utils. 754s Preparing to unpack .../43-x11-xkb-utils_7.7+9_ppc64el.deb ... 754s Unpacking x11-xkb-utils (7.7+9) ... 754s Selecting previously unselected package xserver-common. 754s Preparing to unpack .../44-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 754s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 754s Selecting previously unselected package libglvnd0:ppc64el. 754s Preparing to unpack .../45-libglvnd0_1.7.0-1build1_ppc64el.deb ... 754s Unpacking libglvnd0:ppc64el (1.7.0-1build1) ... 754s Selecting previously unselected package libglx0:ppc64el. 754s Preparing to unpack .../46-libglx0_1.7.0-1build1_ppc64el.deb ... 754s Unpacking libglx0:ppc64el (1.7.0-1build1) ... 754s Selecting previously unselected package libgl1:ppc64el. 754s Preparing to unpack .../47-libgl1_1.7.0-1build1_ppc64el.deb ... 754s Unpacking libgl1:ppc64el (1.7.0-1build1) ... 754s Selecting previously unselected package xvfb. 754s Preparing to unpack .../48-xvfb_2%3a21.1.16-1ubuntu1_ppc64el.deb ... 754s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 754s Setting up gnome-desktop-testing (2021.1-4) ... 754s Setting up libxcb-dri3-0:ppc64el (1.17.0-2) ... 754s Setting up libpixman-1-0:ppc64el (0.44.0-3) ... 754s Setting up libwayland-server0:ppc64el (1.23.1-3) ... 754s Setting up libx11-xcb1:ppc64el (2:1.8.10-2) ... 754s Setting up native-architecture (0.2.6) ... 754s Setting up libxcb-xfixes0:ppc64el (1.17.0-2) ... 754s Setting up desktop-file-utils (0.28-1) ... 754s Setting up libxpm4:ppc64el (1:3.5.17-1build2) ... 754s Setting up libxrender1:ppc64el (1:0.9.10-1.1build1) ... 754s Setting up libgirepository-2.0-0:ppc64el (2.84.1-1) ... 754s Setting up libglvnd0:ppc64el (1.7.0-1build1) ... 754s Setting up libxcb-glx0:ppc64el (1.17.0-2) ... 754s Setting up x11-common (1:7.7+23ubuntu4) ... 755s Setting up libglib2.0-bin (2.84.1-1) ... 755s Setting up libxcb-shm0:ppc64el (1.17.0-2) ... 755s Setting up python3-dbusmock (0.34.3-1) ... 755s Setting up tzdata-legacy (2025b-1ubuntu1) ... 755s Setting up libxxf86vm1:ppc64el (1:1.1.4-1build4) ... 755s Setting up libxcb-present0:ppc64el (1.17.0-2) ... 755s Setting up libfontenc1:ppc64el (1:1.1.8-1build1) ... 755s Setting up python3-packaging (24.2-1) ... 755s Setting up libxcb-sync1:ppc64el (1.17.0-2) ... 755s Setting up libxrandr2:ppc64el (2:1.5.4-1) ... 755s Setting up libvulkan1:ppc64el (1.4.309.0-1) ... 755s Setting up gir1.2-glib-2.0-dev:ppc64el (2.84.1-1) ... 755s Setting up libxshmfence1:ppc64el (1.3.3-1) ... 755s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 755s Setting up libxcb-randr0:ppc64el (1.17.0-2) ... 755s Setting up libxkbfile1:ppc64el (1:1.1.0-1build4) ... 755s Setting up libxfont2:ppc64el (1:2.0.6-1build1) ... 755s Setting up libice6:ppc64el (2:1.1.1-1) ... 755s Setting up mesa-libgallium:ppc64el (25.0.3-1ubuntu2) ... 755s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 755s Setting up girepository-tools:ppc64el (2.84.1-1) ... 755s Setting up libgbm1:ppc64el (25.0.3-1ubuntu2) ... 755s Setting up libgl1-mesa-dri:ppc64el (25.0.3-1ubuntu2) ... 755s Setting up libsm6:ppc64el (2:1.2.4-1) ... 755s Setting up libglib2.0-dev-bin (2.84.1-1) ... 755s Setting up libglx-mesa0:ppc64el (25.0.3-1ubuntu2) ... 755s Setting up libglx0:ppc64el (1.7.0-1build1) ... 755s Setting up libgl1:ppc64el (1.7.0-1build1) ... 755s Setting up libxt6t64:ppc64el (1:1.2.1-1.2build1) ... 755s Setting up libglib2.0-tests (2.84.1-1) ... 756s Setting up libxmu6:ppc64el (2:1.1.3-3build2) ... 756s Setting up libxaw7:ppc64el (2:1.0.16-1) ... 756s Setting up x11-xkb-utils (7.7+9) ... 756s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 756s Setting up xvfb (2:21.1.16-1ubuntu1) ... 756s Processing triggers for man-db (2.13.0-1) ... 756s Processing triggers for libc-bin (2.41-6ubuntu1) ... 761s autopkgtest [10:43:52]: test installed-tests: [----------------------- 761s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 761s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 761s group entry: ubuntu:x:1000: 761s Environment: 761s ADTTMP=/tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 761s ADT_ARTIFACTS=/tmp/autopkgtest.WkW3Wm/installed-tests-artifacts 761s ADT_TEST_TRIGGERS=python3.13/3.13.3-2 dbus-python/1.4.0-1 libffi/3.4.8-2 761s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.WkW3Wm/installed-tests-artifacts 761s AUTOPKGTEST_TESTBED_ARCH=ppc64el 761s AUTOPKGTEST_TEST_ARCH=ppc64el 761s AUTOPKGTEST_TMP=/tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 761s DEBIAN_FRONTEND=noninteractive 761s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 761s DEB_BUILD_OPTIONS=parallel=2 761s GIO_USE_VFS=local 761s GIO_USE_VOLUME_MONITOR=unix 761s HOME=/home/ubuntu 761s LANG=C.UTF-8 761s LOGNAME=ubuntu 761s MAIL=/var/mail/ubuntu 761s OLDPWD=/home/ubuntu 761s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 761s PWD=/tmp/autopkgtest.WkW3Wm/build.723/src 761s SHELL=/bin/bash 761s SHLVL=1 761s SUDO_COMMAND=/var/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.WkW3Wm/wrapper.sh --artifacts=/tmp/autopkgtest.WkW3Wm/installed-tests-artifacts --chdir=/tmp/autopkgtest.WkW3Wm/build.723/src --env=AUTOPKGTEST_TESTBED_ARCH=ppc64el --env=AUTOPKGTEST_TEST_ARCH=ppc64el --env=DEB_BUILD_OPTIONS=parallel=2 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.WkW3Wm/installed-tests-stderr --stdout=/tmp/autopkgtest.WkW3Wm/installed-tests-stdout --tmp=/tmp/autopkgtest.WkW3Wm/autopkgtest_tmp '--env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 dbus-python/1.4.0-1 libffi/3.4.8-2' --make-executable=/tmp/autopkgtest.WkW3Wm/build.723/src/debian/tests/installed-tests -- /tmp/autopkgtest.WkW3Wm/build.723/src/debian/tests/installed-tests 761s SUDO_GID=1000 761s SUDO_HOME=/home/ubuntu 761s SUDO_UID=1000 761s SUDO_USER=ubuntu 761s TERM=linux 761s USER=ubuntu 761s XDG_RUNTIME_DIR=/tmp/autopkgtest.WkW3Wm/autopkgtest_tmp 761s http_proxy=http://squid.internal:3128/ 761s https_proxy=http://squid.internal:3128/ 761s 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 761s run-with-locales: de_DE=ISO-8859-1... 761s Character set: ISO-8859-1 761s Source file: de_DE 761s Output: /tmp/tmp.a3qalzlox3/de_DE 762s run-with-locales: de_DE.utf8... 762s Character set: UTF-8 762s Source file: de_DE 762s Output: /tmp/tmp.a3qalzlox3/de_DE.utf8 763s run-with-locales: de_DE@euro.utf8... 763s Character set: UTF-8 763s Source file: de_DE@euro 763s Output: /tmp/tmp.a3qalzlox3/de_DE@euro.utf8 765s run-with-locales: el_GR.utf8... 765s Character set: UTF-8 765s Source file: el_GR 765s Output: /tmp/tmp.a3qalzlox3/el_GR.utf8 767s run-with-locales: en_GB=ISO-8859-1... 767s Character set: ISO-8859-1 767s Source file: en_GB 767s Output: /tmp/tmp.a3qalzlox3/en_GB 767s run-with-locales: en_GB.utf8... 767s Character set: UTF-8 767s Source file: en_GB 767s Output: /tmp/tmp.a3qalzlox3/en_GB.utf8 769s run-with-locales: en_US=ISO-8859-1... 769s Character set: ISO-8859-1 769s Source file: en_US 769s Output: /tmp/tmp.a3qalzlox3/en_US 769s run-with-locales: en_US.utf8... 769s Character set: UTF-8 769s Source file: en_US 769s Output: /tmp/tmp.a3qalzlox3/en_US.utf8 771s run-with-locales: es_ES.utf8... 771s Character set: UTF-8 771s Source file: es_ES 771s Output: /tmp/tmp.a3qalzlox3/es_ES.utf8 772s run-with-locales: fa_IR=UTF-8... 772s Character set: UTF-8 772s Source file: fa_IR 772s Output: /tmp/tmp.a3qalzlox3/fa_IR 774s run-with-locales: fa_IR.utf8... 774s Character set: UTF-8 774s Source file: fa_IR 774s Output: /tmp/tmp.a3qalzlox3/fa_IR.utf8 775s run-with-locales: fr_FR.utf8... 775s Character set: UTF-8 775s Source file: fr_FR 775s Output: /tmp/tmp.a3qalzlox3/fr_FR.utf8 777s run-with-locales: hr_HR.utf8... 777s Character set: UTF-8 777s Source file: hr_HR 777s Output: /tmp/tmp.a3qalzlox3/hr_HR.utf8 778s run-with-locales: ja_JP.utf8... 778s Character set: UTF-8 778s Source file: ja_JP 778s Output: /tmp/tmp.a3qalzlox3/ja_JP.utf8 779s run-with-locales: ja_JP.EUC-JP... 779s Character set: EUC-JP 779s Source file: ja_JP 779s Output: /tmp/tmp.a3qalzlox3/ja_JP.eucjp 780s run-with-locales: lt_LT.utf8... 780s Character set: UTF-8 780s Source file: lt_LT 780s Output: /tmp/tmp.a3qalzlox3/lt_LT.utf8 781s run-with-locales: pl_PL=ISO-8859-2... 781s Character set: ISO-8859-2 781s Source file: pl_PL 781s Output: /tmp/tmp.a3qalzlox3/pl_PL 782s run-with-locales: pl_PL.ISO-8859-2... 782s Character set: ISO-8859-2 782s Source file: pl_PL 782s Output: /tmp/tmp.a3qalzlox3/pl_PL.iso88592 782s run-with-locales: pl_PL.utf8... 782s Character set: UTF-8 782s Source file: pl_PL 782s Output: /tmp/tmp.a3qalzlox3/pl_PL.utf8 784s run-with-locales: ru_RU=ISO-8859-5... 784s Character set: ISO-8859-5 784s Source file: ru_RU 784s Output: /tmp/tmp.a3qalzlox3/ru_RU 784s run-with-locales: ru_RU.utf8... 784s Character set: UTF-8 784s Source file: ru_RU 784s Output: /tmp/tmp.a3qalzlox3/ru_RU.utf8 786s run-with-locales: sr_RS=UTF-8... 786s Character set: UTF-8 786s Source file: sr_RS 786s Output: /tmp/tmp.a3qalzlox3/sr_RS 787s run-with-locales: sr_RS@latin=UTF-8... 787s Character set: UTF-8 787s Source file: sr_RS@latin 787s Output: /tmp/tmp.a3qalzlox3/sr_RS@latin 789s run-with-locales: sv_SE=ISO-8859-1... 789s Character set: ISO-8859-1 789s Source file: sv_SE 789s Output: /tmp/tmp.a3qalzlox3/sv_SE 790s run-with-locales: sv_SE.utf8... 790s Character set: UTF-8 790s Source file: sv_SE 790s Output: /tmp/tmp.a3qalzlox3/sv_SE.utf8 791s run-with-locales: tr_TR=ISO-8859-9... 791s Character set: ISO-8859-9 791s Source file: tr_TR 791s Output: /tmp/tmp.a3qalzlox3/tr_TR 792s run-with-locales: tr_TR.utf8... 792s Character set: UTF-8 792s Source file: tr_TR 792s Output: /tmp/tmp.a3qalzlox3/tr_TR.utf8 793s run-with-locales: tt_RU=UTF-8... 793s Character set: UTF-8 793s Source file: tt_RU 793s Output: /tmp/tmp.a3qalzlox3/tt_RU 795s run-with-locales: tt_RU.utf8... 795s Character set: UTF-8 795s Source file: tt_RU 795s Output: /tmp/tmp.a3qalzlox3/tt_RU.utf8 796s run-with-locales: tt_RU@iqtelif=UTF-8... 796s Character set: UTF-8 796s Source file: tt_RU@iqtelif 796s Output: /tmp/tmp.a3qalzlox3/tt_RU@iqtelif 797s /tmp/tmp.a3qalzlox3 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE.utf8 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_US 797s /tmp/tmp.a3qalzlox3/en_US/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/en_US/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/en_US/LC_TIME 797s /tmp/tmp.a3qalzlox3/en_US/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/en_US/LC_PAPER 797s /tmp/tmp.a3qalzlox3/en_US/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/en_US/LC_NAME 797s /tmp/tmp.a3qalzlox3/en_US/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/en_US/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/en_US/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/en_US/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/en_US/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_US/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_TIME 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_PAPER 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_NAME 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sr_RS@latin 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_TIME 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_PAPER 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_NAME 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tr_TR 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_TIME 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_PAPER 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_NAME 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_TIME 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_PAPER 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_NAME 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_US.utf8 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sr_RS 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_TIME 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_PAPER 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_NAME 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ru_RU 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_TIME 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_PAPER 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_NAME 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/es_ES.utf8 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/el_GR.utf8 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_TIME 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_PAPER 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_NAME 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_GB.utf8 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_TELEPHONE 797s 1..323 797s # Running test: glib/pollable.test 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_TIME 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_PAPER 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_NAME 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_TIME 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_PAPER 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_NAME 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fa_IR 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_TIME 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_PAPER 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_NAME 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_GB 797s /tmp/tmp.a3qalzlox3/en_GB/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/en_GB/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/en_GB/LC_TIME 797s /tmp/tmp.a3qalzlox3/en_GB/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/en_GB/LC_PAPER 797s /tmp/tmp.a3qalzlox3/en_GB/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/en_GB/LC_NAME 797s /tmp/tmp.a3qalzlox3/en_GB/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/en_GB/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/en_GB/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/en_GB/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/en_GB/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sv_SE 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_TIME 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_PAPER 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_NAME 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE 797s /tmp/tmp.a3qalzlox3/de_DE/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/de_DE/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/de_DE/LC_TIME 797s /tmp/tmp.a3qalzlox3/de_DE/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/de_DE/LC_PAPER 797s /tmp/tmp.a3qalzlox3/de_DE/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/de_DE/LC_NAME 797s /tmp/tmp.a3qalzlox3/de_DE/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/de_DE/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/de_DE/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/de_DE/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/de_DE/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_TELEPHONE 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_IDENTIFICATION 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_TIME 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_CTYPE 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_PAPER 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_COLLATE 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_NAME 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_ADDRESS 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_NUMERIC 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_MONETARY 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_MEASUREMENT 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_MESSAGES 797s /tmp/tmp.a3qalzlox3/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 797s TAP version 14 797s # random seed: R02S462b5ffb33b833a263615d36e273a66c 797s 1..6 797s # Start of pollable tests 797s ok 1 /pollable/converter 797s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 797s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x18b68e62aaf0 and GSocketClientAsyncConnectData 0x18b68e626c10 797s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 797s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 797s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x18b68e62f9f0 for GSocketClientAsyncConnectData 0x18b68e626c10 797s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 797s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 797s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 797s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 797s ok 2 /pollable/socket 797s # Start of unix tests 797s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 797s ok 3 /pollable/unix/pipe 797s # /pollable/unix/pty summary: Test that PTYs are considered pollable 797s ok 4 /pollable/unix/pty 797s ok - glib/pollable.test 797s # Running test: glib/objects-refcount2.test 797s # /pollable/unix/file summary: Test that regular files are not considered pollable 797s ok 5 /pollable/unix/file 797s # /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 797s ok 6 /pollable/unix/nulldev 797s # End of unix tests 797s # End of pollable tests 797s TAP version 14 797s # random seed: R02Sd2abbef5a27cf0fb10b1e439b9c65c1d 797s 1..1 797s # Start of gobject tests 797s # Start of refcount tests 797s # init 0xf38cbbe400 797s # 797s # . 797s # . 797s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 798s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 799s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 800s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 801s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # . 802s # Executing: glib/objects-refcount2.test 802s # . 802s # . 802s # . 802s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 803s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 804s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 805s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 806s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # . 807s # Executing: glib/objects-refcount2.test 807s # . 807s # . 807s # . 807s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 808s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 809s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 810s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 811s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # . 812s # Executing: glib/objects-refcount2.test 812s # . 812s # . 812s # . 812s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 813s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 814s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 815s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 816s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # . 817s # Executing: glib/objects-refcount2.test 817s # . 817s # . 817s # . 817s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 818s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 819s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 820s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 821s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # . 822s # Executing: glib/objects-refcount2.test 822s # . 822s # . 822s # . 822s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 823s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 824s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 825s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 826s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # . 827s # Executing: glib/objects-refcount2.test 827s # . 827s # . 827s # . 827s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 828s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 829s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 830s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 831s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # . 832s # Executing: glib/objects-refcount2.test 832s # . 832s # . 832s # . 832s # . 832s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 833s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 834s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 835s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 836s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # . 837s # Executing: glib/objects-refcount2.test 837s # . 837s # . 837s # . 837s # . 838s # . 838s # . 838s # dispose 0xf38cbbe400! 838s # 838s ok 1 /gobject/refcount/object-advanced 838s # slow test /gobject/refcount/object-advanced executed in 40.20 secs 838s # End of refcount tests 838s # End of gobject tests 838s ok - glib/objects-refcount2.test 838s # Running test: glib/gdbus-connection.test 838s TAP version 14 838s # random seed: R02S9c944ce9d90d50ca2f088ccc940e035a 838s 1..9 838s # Start of gdbus tests 838s # Start of connection tests 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/bus-failure/.dirs/runtime 838s ok 1 /gdbus/connection/bus-failure 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/basic/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 2 /gdbus/connection/basic 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/life-cycle/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 3 /gdbus/connection/life-cycle 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/send/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 4 /gdbus/connection/send 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signals/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 5 /gdbus/connection/signals 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/signal-match-rules/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 6 /gdbus/connection/signal-match-rules 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/filter/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 7 /gdbus/connection/filter 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/serials/.dirs/runtime 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 8 /gdbus/connection/serials 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_V1Z052/gdbus/connection/cancel/.dirs/runtime 838s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 838s ok 9 /gdbus/connection/cancel 838s # End of connection tests 838s # End of gdbus tests 838s ok - glib/gdbus-connection.test 838s # Running test: glib/contenttype.test 838s TAP version 14 838s # random seed: R02Sbeb30b7ea35d3febd8ab9847ae0df8bc 838s 1..14 838s # Start of contenttype tests 838s ok 1 /contenttype/guess 838s ok 2 /contenttype/guess_svg_from_data 838s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 838s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 838s ok 5 /contenttype/unknown 838s ok 6 /contenttype/subtype 838s ok 7 /contenttype/list 838s ok 8 /contenttype/executable 838s ok 9 /contenttype/description 838s ok 10 /contenttype/icon 838s ok 11 /contenttype/symbolic-icon 838s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 838s ok 12 /contenttype/tree 838s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 838s ok 13 /contenttype/tree_invalid_encoding 838s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 838s ok 14 /contenttype/test_type_is_a_special_case 838s # End of contenttype tests 838s ok - glib/contenttype.test 838s # Running test: glib/hook.test 838s TAP version 14 838s # random seed: R02S3032f12c9541d4f1ec8d44503e3bf7a2 838s 1..2 838s # Start of hook tests 838s ok 1 /hook/basics 838s ok 2 /hook/corner-cases 838s # End of hook tests 838s ok - glib/hook.test 838s # Running test: glib/properties.test 838s TAP version 14 838s # random seed: R02S31163eef1f3021fc6609783e33d85a0a 838s 1..14 838s # Start of properties tests 838s ok 1 /properties/install 838s ok 2 /properties/install-many 838s ok 3 /properties/notify 838s ok 4 /properties/notify-queue 838s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 838s ok 5 /properties/construct 838s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 838s # Test g_object_get_property with an initialized value 838s # Test g_object_get_property with an uninitialized value 838s # Test g_object_get_property with a transformable value 838s ok 6 /properties/get-property 838s ok 7 /properties/testv_with_no_properties 838s ok 8 /properties/testv_with_valid_properties 838s ok 9 /properties/testv_with_invalid_property_type 838s ok 10 /properties/testv_with_invalid_property_names 838s ok 11 /properties/testv_getv 838s ok 12 /properties/testv_notify_queue 838s # Start of notify tests 838s ok 13 /properties/notify/too-many-freezes 838s # End of notify tests 838s # Start of set-property tests 838s # Start of variant tests 838s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 838s ok 14 /properties/set-property/variant/floating 838s # End of variant tests 838s # End of set-property tests 838s # End of properties tests 838s ok - glib/properties.test 838s # Running test: glib/cmph-bdz.test 838s TAP version 14 838s # random seed: R02S03c2079a7fd464310620b030c60c41ee 838s 1..2 838s # Start of cmph-bdz tests 838s ok 1 /cmph-bdz/search 838s ok 2 /cmph-bdz/search-packed 838s # End of cmph-bdz tests 838s ok - glib/cmph-bdz.test 838s # Running test: glib/socket-service.test 838s TAP version 14 838s # random seed: R02S1e3247f411cf2d062d221f6877451b76 838s 1..4 838s # Start of socket-service tests 838s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 838s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1b3c8f719150 and GSocketClientAsyncConnectData 0x1b3c8f713bc0 838s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 838s ok 1 /socket-service/start-stop 838s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1b3c8f71d0f0 and GSocketClientAsyncConnectData 0x1b3c8f71cd90 838s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 838s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 838s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1b3c8f71d070 for GSocketClientAsyncConnectData 0x1b3c8f713bc0 838s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 838s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 838s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 838s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 838s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 838s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1b3c8f71d070 for GSocketClientAsyncConnectData 0x1b3c8f71cd90 838s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 838s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 838s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 838s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 838s ok 2 /socket-service/read_write_async 838s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1b3c8f71d0f0 and GSocketClientAsyncConnectData 0x1b3c8f7210d0 838s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 838s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 838s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1b3c8f720600 for GSocketClientAsyncConnectData 0x1b3c8f7210d0 838s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 838s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 838s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 838s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 838s ok 3 /socket-service/read_writev_async 838s # Start of threaded tests 838s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 838s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1b3c8f71e740 and GSocketClientAsyncConnectData 0x1b3c8f71cd90 838s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 838s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 838s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1b3c8f71c9c0 for GSocketClientAsyncConnectData 0x1b3c8f71cd90 838s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 838s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 838s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 838s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 838s ok 4 /socket-service/threaded/712570 838s # End of threaded tests 838s # End of socket-service tests 838s ok - glib/socket-service.test 838s # Running test: glib/module-test-library.test 838s TAP version 14 838s # random seed: R02Sa45dd47931073b195cc36f664cdab8db 838s 1..3 838s # Start of module tests 838s ok 1 /module/basics 838s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 838s ok 2 /module/invalid-libtool-archive 838s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 838s ok 3 /module/local-binding 838s # End of module tests 838s ok - glib/module-test-library.test 838s # Running test: glib/gdbus-message.test 838s TAP version 14 838s # random seed: R02Sf4c1962aa5c5367b919a34dc86318c13 838s 1..3 838s # Start of gdbus tests 838s # Start of message tests 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_I9TX52/gdbus/message/lock/.dirs/runtime 838s ok 1 /gdbus/message/lock 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_I9TX52/gdbus/message/copy/.dirs/runtime 838s ok 2 /gdbus/message/copy 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_I9TX52/gdbus/message/bytes-needed/.dirs/runtime 838s # Vector: 0 838s # Vector: 1 838s # Vector: 2 838s # Vector: 3 838s # Vector: 4 838s # Vector: 5 838s ok 3 /gdbus/message/bytes-needed 838s # End of message tests 838s # End of gdbus tests 838s ok - glib/gdbus-message.test 838s # Running test: glib/io-channel.test 838s TAP version 14 838s # random seed: R02Saa0d43ecf154a7894c121acac2c52034 838s 1..2 838s # Start of io-channel tests 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3CMY52/io-channel/read-write/.dirs/runtime 838s # Line one 838s # 838s # Line two 838s # 838s # Line three 838s # 838s # /* Hello */ 838s # 838s # \x1234\x567890\x6666 838s # 838s # read 62 bytes, wrote 62 bytes 838s ok 1 /io-channel/read-write 838s # Start of read-line tests 838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/home 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/cache 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/system-config2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/config 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/system-data2 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/data 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/state 838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3CMY52/io-channel/read-line/embedded-nuls/.dirs/runtime 838s ok - glib/io-channel.test 838s # Running test: glib/mount-operation.test 838s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 838s ok 2 /io-channel/read-line/embedded-nuls 838s # End of read-line tests 838s # End of io-channel tests 838s TAP version 14 838s # random seed: R02S3f541421553b61b0f4d0cf688dcf5d1c 838s 1..2 838s # Start of mount-operation tests 838s ok 1 /mount-operation/construction 838s ok 2 /mount-operation/properties 838s # End of mount-operation tests 838s ok - glib/mount-operation.test 838s # Running test: glib/memchunk.test 838s TAP version 14 838s # random seed: R02Sf5a4cf97c8006aea56fac2fcfd07366e 838s 1..1 838s # Start of memchunk tests 838s ok 1 /memchunk/basic 838s # End of memchunk tests 838s ok - glib/memchunk.test 838s # Running test: glib/performance.test 842s # Executing: glib/performance.test 847s # Executing: glib/performance.test 851s simple-construction: Millions of constructed objects per second: 6.582 852s # Executing: glib/performance.test 854s simple-construction1: Millions of constructed objects per second: 56.198 857s # Executing: glib/performance.test 861s complex-construction: Millions of constructed objects per second: 3.539 862s # Executing: glib/performance.test 867s # Executing: glib/performance.test 869s complex-construction1: Millions of constructed objects per second: 4.307 872s # Executing: glib/performance.test 877s # Executing: glib/performance.test 879s complex-construction2: Millions of constructed objects per second: 4.834 880s finalization: Millions of finalized objects per second: 0.843 882s type-check: Million type checks per second: 14.04 882s # Executing: glib/performance.test 883s emit-unhandled: Emissions per second: 1160102 885s emit-unhandled-empty: Emissions per second: 9759624 886s emit-unhandled-generic: Emissions per second: 1345082 887s # Executing: glib/performance.test 888s emit-unhandled-generic-empty: Emissions per second: 10218315 889s emit-unhandled-args: Emissions per second: 1198681 890s emit-handled: Emissions per second: 875126 892s emit-handled-empty: Emissions per second: 885969 892s # Executing: glib/performance.test 893s emit-handled-generic: Emissions per second: 874415 895s emit-handled-generic-empty: Emissions per second: 1286039 896s emit-handled-args: Emissions per second: 897011 897s # Executing: glib/performance.test 898s notify-unhandled: Notify (unhandled) per second: 9096079 899s notify-by-pspec-unhandled: Notify (unhandled) per second: 43857052 900s notify-handled: Notify per second: 520539 902s notify-by-pspec-handled: Notify per second: 541299 902s # Executing: glib/performance.test 903s property-set: Property set per second: 6269012 905s property-set-signaled: Property set per second: 1018325 906s property-get: Property get per second: 6752325 907s # Executing: glib/performance.test 908s refcount: Million refs+unref per second: 6.29 909s refcount-1: Million refs+unref per second: 14.05 911s ok - glib/performance.test 911s # Running test: glib/reference.test 911s refcount-toggle: Million refs+unref per second: 8.50 911s TAP version 14 911s # random seed: R02S330fdd2a449041927384e6346a1d7132 911s 1..29 911s # Start of type tests 911s ok 1 /type/fundamentals 911s ok 2 /type/qdata 911s ok 3 /type/query 911s ok 4 /type/class-private 911s # End of type tests 911s # Start of object tests 911s ok 5 /object/clear 911s ok 6 /object/clear-function 911s ok 7 /object/set 911s ok 8 /object/set-function 911s ok 9 /object/value 911s ok 10 /object/initially-unowned 911s ok - glib/reference.test 911s # Running test: glib/value.test 911s ok 11 /object/weak-pointer 911s ok 12 /object/weak-ref 911s ok 13 /object/toggle-ref 911s ok 14 /object/qdata 911s ok 15 /object/qdata2 911s # Start of set tests 911s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 911s ok 16 /object/set/derived-type 911s # End of set tests 911s # Start of weak-pointer tests 911s ok 17 /object/weak-pointer/clear 911s ok 18 /object/weak-pointer/clear-function 911s ok 19 /object/weak-pointer/set 911s ok 20 /object/weak-pointer/set-function 911s # End of weak-pointer tests 911s # Start of weak-ref tests 911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 911s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 911s ok 21 /object/weak-ref/on-dispose 911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 911s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 911s ok 22 /object/weak-ref/on-run-dispose 911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 911s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 911s ok 23 /object/weak-ref/on-toggle-notify 911s ok 24 /object/weak-ref/in-toggle-notify 911s ok 25 /object/weak-ref/many 911s # Start of concurrent tests 911s ok 26 /object/weak-ref/concurrent/0 911s ok 27 /object/weak-ref/concurrent/1 911s # End of concurrent tests 911s # End of weak-ref tests 911s # Start of toggle-ref tests 911s ok 28 /object/toggle-ref/ref-on-dispose 911s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 911s # End of toggle-ref tests 911s # End of object tests 911s TAP version 14 911s # random seed: R02S1fa30bd3560617f932b3238b95ee2521 911s 1..9 911s # Start of value tests 911s ok 1 /value/basic 911s ok 2 /value/collection 911s ok 3 /value/copying 911s ok 4 /value/enum-transformation 911s ok 5 /value/gtype 911s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 911s ok 6 /value/string 911s # Next: GObject object in GValue of GObject to GValue of GObject 911s # Next: GObject object in GValue of GObject to GValue of TestInterface 911s # Next: GObject object in GValue of GObject to GValue of TestObjectA 911s # Next: GObject object in GValue of GObject to GValue of TestObjectB 911s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 911s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 911s # Next: TestObjectA object in GValue of GObject to GValue of GObject 911s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 911s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 911s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 911s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 911s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 911s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 911s # Next: TestObjectB object in GValue of GObject to GValue of GObject 911s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 911s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 911s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 911s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 911s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 911s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 911s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 911s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 911s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 911s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 911s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 911s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 911s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 911s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 911s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 911s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 911s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 911s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 911s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 911s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 911s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 911s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 911s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 911s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 911s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 911s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 911s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 911s ok - glib/value.test 911s # Running test: glib/live-g-file.test 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 911s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 911s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 911s ok 7 /value/transform-object 911s # Start of array tests 911s ok 8 /value/array/basic 911s ok 9 /value/array/sort-with-data 911s # End of array tests 911s # End of value tests 911s TAP version 14 911s # random seed: R02S3823661b9fe33e55b00ed3993fa0cf50 911s 1..13 911s # Start of live-g-file tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/prep_clean_structure/.dirs/runtime 911s # Cleaning target testing structure in '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 911s ok 1 /live-g-file/prep_clean_structure 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/create_structure/.dirs/runtime 911s # 911s # Going to create testing structure in '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # Creating directory 'dir1'... 911s # Creating directory 'dir1/subdir'... 911s # Creating directory 'dir2'... 911s # Creating directory 'dir-target'... 911s # Creating directory 'dir_no-access'... 911s # Creating directory 'dir_no-write'... 911s # Creating file 'target-file'... 911s # Creating file 'normal_file'... 911s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 911s # Creating file 'executable_file'... 911s # Creating file 'private_file'... 911s # Creating file 'normal_file2'... 911s # Creating file 'readonly_file'... 911s # Creating file 'UTF_pr?i?lis? z'... 911s # Creating directory 'dir_pr?i?lis? z'... 911s # Creating symlink 'lost_symlink' --> 'nowhere'... 911s # Creating directory 'dir_hidden'... 911s # Creating file 'dir_hidden/.a-hidden-file'... 911s # Creating file 'dir_hidden/file-in-.hidden1'... 911s # Creating file 'dir_hidden/file-in-.hidden2'... 911s # Creating pattern file... 911s # done. 911s ok 2 /live-g-file/create_structure 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_initial_structure/.dirs/runtime 911s # Testing sample structure in '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # Testing file 'dir1'... 911s # Testing file 'dir1/subdir'... 911s # Testing file 'dir2'... 911s # Testing file 'dir-target'... 911s # Testing file 'dir_no-access'... 911s # Testing file 'dir_no-write'... 911s # Testing file 'target-file'... 911s # Testing file 'normal_file'... 911s # Testing file 'normal_file-symlink'... 911s # Testing file 'executable_file'... 911s # Testing file 'private_file'... 911s # Testing file 'normal_file2'... 911s # Testing file 'readonly_file'... 911s # Testing file 'UTF_pr?i?lis? z'... 911s # Testing file 'dir_pr?i?lis? z'... 911s # Testing file 'lost_symlink'... 911s # Testing file 'dir_hidden'... 911s # Testing file 'dir_hidden/.a-hidden-file'... 911s # Testing file 'dir_hidden/file-in-.hidden1'... 911s # Testing file 'dir_hidden/file-in-.hidden2'... 911s # Testing pattern file... 911s # read 65536 bytes, total = 65536 of 65536. 911s ok 3 /live-g-file/test_initial_structure 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_traverse_structure/.dirs/runtime 911s # Traversing through the sample structure in '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # Found file dir1, relative to root: dir1 911s # Found file subdir, relative to root: dir1/subdir 911s # Found file dir2, relative to root: dir2 911s # Found file dir-target, relative to root: dir-target 911s # Found file dir_no-access, relative to root: dir_no-access 911s # Found file dir_no-write, relative to root: dir_no-write 911s # Found file target-file, relative to root: target-file 911s # Found file normal_file, relative to root: normal_file 911s # Found file normal_file-symlink, relative to root: normal_file-symlink 911s # Found file executable_file, relative to root: executable_file 911s # Found file private_file, relative to root: private_file 911s # Found file normal_file2, relative to root: normal_file2 911s # Found file readonly_file, relative to root: readonly_file 911s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 911s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 911s # Found file lost_symlink, relative to root: lost_symlink 911s # Found file dir_hidden, relative to root: dir_hidden 911s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 911s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 911s # Found file .hidden, relative to root: dir_hidden/.hidden 911s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 911s # Found file pattern_file, relative to root: pattern_file 911s ok 4 /live-g-file/test_traverse_structure 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_enumerate/.dirs/runtime 911s # Test enumerate '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # Testing file 'dir_no-access' 911s # Testing file 'normal_file' 911s # Testing file 'normal_file-symlink' 911s # Testing file 'not_exists' 911s # Testing file 'not_exists' 911s # Testing file 'not_exists2' 911s # Testing file 'not_exists3' 911s # Testing file 'not_exists4' 911s # Testing file 'dir_no-execute/file' 911s ok 5 /live-g-file/test_enumerate 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_open/.dirs/runtime 911s # test_open: 'dir1' 911s # test_open: 'dir_no-access' 911s # test_open: 'target-file' 911s # test_open: 'normal_file-symlink' 911s # test_open: 'executable_file' 911s # test_open: 'private_file' 911s # test_open: 'readonly_file' 911s # test_open: 'UTF_pr?i?lis? z' 911s # test_open: 'pattern_file' 911s # test_open: 'not_exists' 911s # test_open: 'dir_no-execute/file' 911s # test_open: 'lost_symlink' 911s ok 6 /live-g-file/test_open 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_create/.dirs/runtime 911s # test_create: 'dir1' 911s # error code 3 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir1?: Is a directory 911s # test_create: 'dir1/subdir' 911s # error code 3 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir1/subdir?: Is a directory 911s # test_create: 'dir2' 911s # error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir2?: File exists 911s # test_create: 'normal_file' 911s # error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/normal_file?: File exists 911s # test_create: 'executable_file' 911s # test_create: 'private_file' 911s # test_create: 'normal_file2' 911s # test_create: 'UTF_pr?i?lis? z' 911s # error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 911s # test_create: 'dir_pr?i?lis? z' 911s # error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_pr?i?lis? z?: File exists 911s # test_create: 'pattern_file' 911s # test_create: 'not_exists2' 911s # test_create: 'not_exists3' 911s # test_create: 'not_exists4' 911s ok 7 /live-g-file/test_create 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_copy_move/.dirs/runtime 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> 'dir-target' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> '.' 911s # res = 0, error code 2 = Target file exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> 'target-file' 911s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> 'not_exists' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir2' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> 'dir-target' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> '.' 911s # res = 0, error code 2 = Target file exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> 'target-file' 911s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/dir-target?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> 'not_exists' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> 'dir_no-access' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'dir-target' --> 'dir_no-write' 911s # res = 0, error code 25 = Can?t recursively copy directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/target-file?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/target-file?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/target-file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'target-file' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/target-file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> '.' 911s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/normal_file-symlink: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> 'target-file' 911s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 911s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 911s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 911s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/executable_file?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/executable_file?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/executable_file?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'executable_file' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/private_file?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/private_file?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/private_file?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/private_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'private_file' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/private_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/normal_file2?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/normal_file2?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'normal_file2' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> '.' 911s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/pattern_file?: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> 'target-file' 911s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/pattern_file?: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> 'not_exists' 911s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> 'dir_no-access' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'pattern_file' --> 'dir_no-write' 911s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'dir-target' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> '.' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'target-file' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'not_exists' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'dir_no-access' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'dir_no-write' 911s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists?: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'not_exists' --> 'dir-target' 911s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> 'dir-target' 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> '.' 911s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/lost_symlink: File exists 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> 'target-file' 911s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/target-file/lost_symlink: Not a directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> 'not_exists' 911s ok - glib/live-g-file.test 911s # Running test: glib/gdbus-peer-object-manager.test 911s ok - glib/gdbus-peer-object-manager.test 911s # Running test: glib/gdbus-auth.test 911s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 911s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 911s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 911s ok 8 /live-g-file/test_copy_move 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_delete/.dirs/runtime 911s # Deleting dir1, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir1 911s # result = 0, error = Error removing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir1: Directory not empty 911s # Deleting dir2, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir2 911s # result = 0, error = Error removing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir2: No such file or directory 911s # Deleting executable_file, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/executable_file 911s # result = 0, error = Error trashing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/executable_file: No such file or directory 911s # Deleting readonly_file, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/readonly_file 911s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_pr?i?lis? z 911s # Deleting not_exists, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists 911s # result = 0, error = Error removing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists: No such file or directory 911s # Deleting not_exists, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists 911s # result = 0, error = Error trashing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/not_exists: No such file or directory 911s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-execute/file 911s # result = 0, error = Error removing file /tmp/test_live-g-file_MD2W52/testdir_live-g-file/dir_no-execute/file: No such file or directory 911s # Deleting lost_symlink, path = /tmp/test_live-g-file_MD2W52/testdir_live-g-file/lost_symlink 911s ok 9 /live-g-file/test_delete 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_make_directory_with_parents/.dirs/runtime 911s # We do not have CAP_DAC_OVERRIDE or equivalent 911s ok 10 /live-g-file/test_make_directory_with_parents 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/final_clean/.dirs/runtime 911s # Cleaning target testing structure in '/tmp/test_live-g-file_MD2W52/testdir_live-g-file'... 911s # deleting 'dir1' 911s # deleting 'subdir' 911s # deleting 'dir-target' 911s # deleting 'dir2' 911s # deleting 'target-file' 911s # deleting 'normal_file-symlink' 911s # deleting 'pattern_file' 911s # deleting 'executable_file' 911s # deleting 'private_file' 911s # deleting 'normal_file2' 911s # deleting 'UTF_pr?i?lis? z' 911s # deleting 'lost_symlink' 911s # deleting 'dir_no-access' 911s # deleting 'dir_no-write' 911s # deleting 'target-file' 911s # deleting 'normal_file' 911s # deleting 'normal_file-symlink' 911s # deleting 'executable_file~' 911s # deleting 'private_file' 911s # deleting 'normal_file2~' 911s # deleting 'a' 911s # deleting 'UTF_pr?i?lis? z' 911s # deleting 'dir_hidden' 911s # deleting '.a-hidden-file' 911s # deleting 'file-in-.hidden1' 911s # deleting '.hidden' 911s # deleting 'file-in-.hidden2' 911s # deleting 'pattern_file' 911s # deleting 'executable_file' 911s # deleting 'normal_file2' 911s # deleting 'not_exists2' 911s # deleting 'not_exists3' 911s # deleting 'not_exists4' 911s ok 11 /live-g-file/final_clean 911s # Start of test_unix_is_mountpoint tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 911s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_MD2W52/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 911s ok 13 /live-g-file/test_unix_is_mountpoint/proc 911s # End of test_unix_is_mountpoint tests 911s # End of live-g-file tests 911s TAP version 14 911s # random seed: R02S322f51414dde4eb5fa5728b5f33cf718 911s 1..2 911s # Start of gdbus tests 911s # Start of peer-object-manager tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/normal/.dirs/runtime 911s ok 1 /gdbus/peer-object-manager/normal 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_0XJS52/gdbus/peer-object-manager/root/.dirs/runtime 911s ok 2 /gdbus/peer-object-manager/root 911s # End of peer-object-manager tests 911s # End of gdbus tests 911s TAP version 14 911s # random seed: R02S2998240a076250cc1fe7ab927a8b3694 911s 1..5 911s # Start of gdbus tests 911s # Start of auth tests 911s # Start of client tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/EXTERNAL/.dirs/runtime 911s ok 1 /gdbus/auth/client/EXTERNAL 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 911s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 911s # End of client tests 911s # Start of server tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/ANONYMOUS/.dirs/runtime 911s ok 3 /gdbus/auth/server/ANONYMOUS 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/EXTERNAL/.dirs/runtime 911s ok 4 /gdbus/auth/server/EXTERNAL 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_EH1R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 911s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 911s # End of server tests 911s # End of auth tests 911s # End of gdbus tests 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s ok - glib/gdbus-auth.test 911s # Running test: glib/mapping.test 911s TAP version 14 911s # random seed: R02S7f0fd283ad342d1c48c913c734fd31e3 911s 1..3 911s # Start of mapping tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/system-config1:/tmp/test_mapping_4C3S52/mapping/flags/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/system-data1:/tmp/test_mapping_4C3S52/mapping/flags/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_4C3S52/mapping/flags/.dirs/runtime 911s # test_mapping: ok 911s ok 1 /mapping/flags 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_4C3S52/mapping/private/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_4C3S52/mapping/private/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_4C3S52/mapping/private/.dirs/system-config1:/tmp/test_mapping_4C3S52/mapping/private/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_4C3S52/mapping/private/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_4C3S52/mapping/private/.dirs/system-data1:/tmp/test_mapping_4C3S52/mapping/private/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_4C3S52/mapping/private/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_4C3S52/mapping/private/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_4C3S52/mapping/private/.dirs/runtime 911s ok 2 /mapping/private 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_4C3S52/mapping/private-child/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_4C3S52/mapping/private-child/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_4C3S52/mapping/private-child/.dirs/runtime 911s # test_child_private: child spawned 911s # Subtest: /usr/libexec/installed-tests/glib/mapping 911s # random seed: R02S2cbc98a019dd5ab98a73efad002df5fe 911s ok - glib/mapping.test 911s # Running test: glib/once.test 911s ok - glib/once.test 911s # Running test: glib/memory-monitor-dbus.test 911s # test_child_private: received first child signal 911s # test_child_private: received parent signal 911s # Child exited with status 0 911s # test_child_private: received second child signal 911s ok 3 /mapping/private-child 911s # End of mapping tests 911s TAP version 14 911s # random seed: R02S2922cd447f620d24f7e47b86cb7457db 911s 1..5 911s # Start of once tests 911s # /once/single-threaded summary: Test g_once() usage from a single thread 911s ok 1 /once/single-threaded 911s # /once/multi-threaded summary: Test g_once() usage from multiple threads 911s ok 2 /once/multi-threaded 911s # End of once tests 911s # Start of once-init tests 911s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 911s ok 3 /once-init/single-threaded 911s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 911s ok 4 /once-init/multi-threaded 911s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 911s ok 5 /once-init/string 911s # End of once-init tests 911s TAP version 13 911s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 911s 1..1 911s ok - glib/memory-monitor-dbus.test 911s # Running test: glib/gdbus-proxy-unique-name.test 911s TAP version 14 911s # random seed: R02Sc61599043d8e054f324766dbe8d46b5c 911s 1..1 911s # Start of gdbus tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_7PB852/gdbus/proxy-unique-name/.dirs/runtime 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 911s ok 1 /gdbus/proxy-unique-name 911s # End of gdbus tests 911s ok - glib/gdbus-proxy-unique-name.test 911s # Running test: glib/resolver-parsing.test 911s TAP version 14 911s # random seed: R02S31a0c38b9470d66ea10f8aca6d652e24 911s 1..21 911s # Start of gresolver tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/invalid-header/.dirs/runtime 911s ok 1 /gresolver/invalid-header 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/record-ownership/.dirs/runtime 911s ok 2 /gresolver/record-ownership 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/unknown-record-type/.dirs/runtime 911s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 911s ok 3 /gresolver/unknown-record-type 911s # Start of mx tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/mx/valid/.dirs/runtime 911s ok 4 /gresolver/mx/valid 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/.dirs/runtime 911s ok 5 /gresolver/mx/invalid 911s # Start of invalid tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short/.dirs/runtime 911s ok 6 /gresolver/mx/invalid/too-short 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/mx/invalid/too-short2/.dirs/runtime 911s ok 7 /gresolver/mx/invalid/too-short2 911s # End of invalid tests 911s # End of mx tests 911s # Start of ns tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/ns/valid/.dirs/runtime 911s ok 8 /gresolver/ns/valid 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/ns/invalid/.dirs/runtime 911s ok 9 /gresolver/ns/invalid 911s # End of ns tests 911s # Start of soa tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/soa/valid/.dirs/runtime 911s ok 10 /gresolver/soa/valid 911s # Start of invalid tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/mname/.dirs/runtime 911s ok 11 /gresolver/soa/invalid/mname 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/rname/.dirs/runtime 911s ok 12 /gresolver/soa/invalid/rname 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/soa/invalid/too-short/.dirs/runtime 911s ok 13 /gresolver/soa/invalid/too-short 911s # End of invalid tests 911s # End of soa tests 911s # Start of srv tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/srv/valid/.dirs/runtime 911s ok 14 /gresolver/srv/valid 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/.dirs/runtime 911s ok 15 /gresolver/srv/invalid 911s # Start of invalid tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short/.dirs/runtime 911s ok 16 /gresolver/srv/invalid/too-short 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/srv/invalid/too-short2/.dirs/runtime 911s ok 17 /gresolver/srv/invalid/too-short2 911s # End of invalid tests 911s # End of srv tests 911s # Start of txt tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/.dirs/runtime 911s ok 18 /gresolver/txt/valid 911s # Start of valid tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/txt/valid/multiple-strings/.dirs/runtime 911s ok 19 /gresolver/txt/valid/multiple-strings 911s # End of valid tests 911s # Start of invalid tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/empty/.dirs/runtime 911s ok 20 /gresolver/txt/invalid/empty 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_F44552/gresolver/txt/invalid/overflow/.dirs/runtime 911s ok 21 /gresolver/txt/invalid/overflow 911s # End of invalid tests 911s # End of txt tests 911s # End of gresolver tests 911s ok - glib/resolver-parsing.test 911s # Running test: glib/filter-streams.test 911s TAP version 14 911s # random seed: R02See2efeaeca4a283532cf0d6be3a2359e 911s 1..4 911s # Start of filter-stream tests 911s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 911s ok 1 /filter-stream/input 911s ok 2 /filter-stream/output 911s ok - glib/filter-streams.test 911s ok 3 /filter-stream/async-input 911s ok 4 /filter-stream/async-output 911s # End of filter-stream tests 911s # Running test: glib/refcount.test 911s TAP version 14 911s # random seed: R02Sca08f9937074bcdda934d06aabaffdeb 911s 1..4 911s # Start of refcount tests 911s ok 1 /refcount/grefcount 911s ok 2 /refcount/gatomicrefcount 911s # Start of grefcount tests 911s ok - glib/refcount.test 911s ok 3 /refcount/grefcount/saturation 911s # End of grefcount tests 911s # Start of gatomicrefcount tests 911s ok 4 /refcount/gatomicrefcount/saturation 911s # End of gatomicrefcount tests 911s # End of refcount tests 911s # Running test: glib/gdbus-proxy-threads.test 911s TAP version 14 911s # random seed: R02Sc13b9e3dbf88482cacb4c1e1682a151a 911s 1..1 911s # Start of gdbus tests 911s # Start of proxy tests 911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/home 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/cache 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/system-config2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/config 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/system-data2 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/data 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/state 911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_GWT652/gdbus/proxy/vs-threads/.dirs/runtime 912s # Executing: glib/gdbus-proxy-threads.test 914s ok 1 /gdbus/proxy/vs-threads 914s # slow test /gdbus/proxy/vs-threads executed in 2.39 secs 914s # End of proxy tests 914s # End of gdbus tests 914s cleaning up pid 3054 914s ok - glib/gdbus-proxy-threads.test 914s # Running test: glib/markup-parse.test 914s TAP version 14 914s # random seed: R02S070dcbd4a3998fcf8662d326c38353ff 914s 1..71 914s # Start of markup tests 914s # Start of parse tests 914s ok 1 /markup/parse/fail-20.gmarkup 914s ok 2 /markup/parse/fail-17.gmarkup 914s ok 3 /markup/parse/fail-9.gmarkup 914s ok 4 /markup/parse/fail-5.gmarkup 914s ok - glib/markup-parse.test 914s # Running test: glib/init.test 914s ok 5 /markup/parse/fail-24.gmarkup 914s ok 6 /markup/parse/fail-26.gmarkup 914s ok 7 /markup/parse/valid-17.gmarkup 914s ok 8 /markup/parse/valid-9.gmarkup 914s ok 9 /markup/parse/fail-45.gmarkup 914s ok 10 /markup/parse/fail-14.gmarkup 914s ok 11 /markup/parse/fail-48.gmarkup 914s ok 12 /markup/parse/fail-35.gmarkup 914s ok 13 /markup/parse/fail-28.gmarkup 914s ok 14 /markup/parse/fail-1.gmarkup 914s ok 15 /markup/parse/fail-27.gmarkup 914s ok 16 /markup/parse/valid-13.gmarkup 914s ok 17 /markup/parse/fail-37.gmarkup 914s ok 18 /markup/parse/valid-8.gmarkup 914s ok 19 /markup/parse/valid-2.gmarkup 914s ok 20 /markup/parse/fail-47.gmarkup 914s ok 21 /markup/parse/fail-4.gmarkup 914s ok 22 /markup/parse/fail-50.gmarkup 914s ok 23 /markup/parse/fail-6.gmarkup 914s ok 24 /markup/parse/fail-49.gmarkup 914s ok 25 /markup/parse/fail-30.gmarkup 914s ok 26 /markup/parse/fail-25.gmarkup 914s ok 27 /markup/parse/fail-41.gmarkup 914s ok 28 /markup/parse/valid-3.gmarkup 914s ok 29 /markup/parse/fail-18.gmarkup 914s ok 30 /markup/parse/fail-8.gmarkup 914s ok 31 /markup/parse/valid-5.gmarkup 914s ok 32 /markup/parse/fail-7.gmarkup 914s ok 33 /markup/parse/valid-15.gmarkup 914s ok 34 /markup/parse/fail-44.gmarkup 914s ok 35 /markup/parse/fail-34.gmarkup 914s ok 36 /markup/parse/fail-31.gmarkup 914s ok 37 /markup/parse/fail-22.gmarkup 914s ok 38 /markup/parse/fail-38.gmarkup 914s ok 39 /markup/parse/fail-12.gmarkup 914s ok 40 /markup/parse/fail-13.gmarkup 914s ok 41 /markup/parse/fail-42.gmarkup 914s ok 42 /markup/parse/fail-16.gmarkup 914s ok 43 /markup/parse/valid-11.gmarkup 914s ok 44 /markup/parse/fail-36.gmarkup 914s ok 45 /markup/parse/fail-52.gmarkup 914s ok 46 /markup/parse/valid-10.gmarkup 914s ok 47 /markup/parse/valid-4.gmarkup 914s ok 48 /markup/parse/fail-54.gmarkup 914s ok 49 /markup/parse/fail-11.gmarkup 914s ok 50 /markup/parse/fail-32.gmarkup 914s ok 51 /markup/parse/valid-12.gmarkup 914s ok 52 /markup/parse/fail-39.gmarkup 914s ok 53 /markup/parse/valid-6.gmarkup 914s ok 54 /markup/parse/fail-53.gmarkup 914s ok 55 /markup/parse/fail-29.gmarkup 914s ok 56 /markup/parse/fail-33.gmarkup 914s ok 57 /markup/parse/fail-19.gmarkup 914s ok 58 /markup/parse/fail-46.gmarkup 914s ok 59 /markup/parse/valid-7.gmarkup 914s ok 60 /markup/parse/valid-16.gmarkup 914s ok 61 /markup/parse/valid-1.gmarkup 914s ok 62 /markup/parse/fail-2.gmarkup 914s ok 63 /markup/parse/fail-21.gmarkup 914s ok 64 /markup/parse/valid-14.gmarkup 914s ok 65 /markup/parse/fail-51.gmarkup 914s ok 66 /markup/parse/fail-40.gmarkup 914s ok 67 /markup/parse/fail-43.gmarkup 914s ok 68 /markup/parse/fail-23.gmarkup 914s ok 69 /markup/parse/fail-15.gmarkup 914s ok 70 /markup/parse/fail-10.gmarkup 914s ok 71 /markup/parse/fail-3.gmarkup 914s # End of parse tests 914s # End of markup tests 914s TAP version 14 914s # random seed: R02S91d718aa80ebe6f4b118b2477beec959 914s 1..2 914s # Start of thread tests 914s # Start of deprecated tests 914s ok - glib/init.test 914s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/home 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/cache 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_PX4W52/thread/deprecated/init/.dirs/system-config2 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/config 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_PX4W52/thread/deprecated/init/.dirs/system-data2 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/data 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/state 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_PX4W52/thread/deprecated/init/.dirs/runtime 914s ok 1 /thread/deprecated/init 914s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 914s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_PX4W52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 914s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 914s # End of deprecated tests 914s # End of thread tests 914s # Running test: glib/io-stream.test 914s ok - glib/io-stream.test 914s # Running test: glib/threadtests.test 914s TAP version 14 914s # random seed: R02Scb1db021dfb41dbc4a479c2c2f4d5e30 914s 1..3 914s # Start of io-stream tests 914s ok 1 /io-stream/copy-chunks 914s # Start of close tests 914s # Start of async tests 914s ok 2 /io-stream/close/async/memory 914s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 914s ok 3 /io-stream/close/async/file 914s # End of async tests 914s # End of close tests 914s # End of io-stream tests 914s TAP version 14 914s # random seed: R02Sccb2898152f57ae43637c974fcad17b4 914s 1..5 914s # Start of GObject tests 914s ok 1 /GObject/threaded-object-init 915s ok 2 /GObject/threaded-weak-ref 915s # slow test /GObject/threaded-weak-ref executed in 0.96 secs 915s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 915s # /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 915s ok 3 /GObject/threaded-toggle-notify 915s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 915s # Start of threaded-weak-ref tests 915s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 915s # /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. 915s ok 5 /GObject/threaded-weak-ref/on-finalization 915s # End of threaded-weak-ref tests 915s # End of GObject tests 915s ok - glib/threadtests.test 915s # Running test: glib/cxx-20.test 915s TAP version 14 915s # random seed: R02S18fa57211fb52c2aa03587ac891a6c48 915s 1..2 915s # Start of gtask tests 915s # 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. 915s ok 1 /gtask/name 915s # Start of name tests 915s # 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. 915s ok 2 /gtask/name/macro-wrapper 915s # End of name tests 915s # End of gtask tests 915s ok - glib/cxx-20.test 915s # Running test: glib/deprecated-properties.test 915s ok - glib/deprecated-properties.test 915s # Running test: glib/thread-deprecated.test 915s TAP version 14 915s # random seed: R02S0909559e9e1befddb68327acf8433081 915s 1..3 915s # Start of deprecated-properties tests 915s ok 1 /deprecated-properties/construct 915s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 915s ok 2 /deprecated-properties/default-construct 915s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 915s ok 3 /deprecated-properties/set 915s # End of deprecated-properties tests 915s TAP version 14 915s # random seed: R02S5d8c231453285daad70ca22bbce757c7 915s 1..6 915s # Start of thread tests 916s ok 1 /thread/mutex 916s ok 2 /thread/static-rec-mutex 917s # Executing: glib/thread-deprecated.test 920s ok 3 /thread/static-private 920s # slow test /thread/static-private executed in 4.40 secs 922s # Executing: glib/thread-deprecated.test 925s ok 4 /thread/static-rw-lock 925s # slow test /thread/static-rw-lock executed in 5.00 secs 925s ok 5 /thread/once 927s # Executing: glib/thread-deprecated.test 932s # Executing: glib/thread-deprecated.test 935s ok 6 /thread/rerun-all 935s # slow test /thread/rerun-all executed in 10.03 secs 935s # End of thread tests 935s ok - glib/thread-deprecated.test 935s # Running test: glib/gdbus-connection-flush.test 935s TAP version 14 935s # random seed: R02S52bef175432e05d2993c354530f6e9ed 935s 1..2 935s # Start of gdbus tests 935s # Start of connection tests 935s # Start of flush tests 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/busy/.dirs/runtime 935s ok 1 /gdbus/connection/flush/busy 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_9AV652/gdbus/connection/flush/idle/.dirs/runtime 935s ok 2 /gdbus/connection/flush/idle 935s # End of flush tests 935s # End of connection tests 935s # End of gdbus tests 935s ok - glib/gdbus-connection-flush.test 935s # Running test: glib/gdbus-error.test 935s TAP version 14 935s # random seed: R02S033502b40e600355114faf43c59307db 935s 1..4 935s # Start of gdbus tests 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_F2W452/gdbus/registered-errors/.dirs/runtime 935s ok 1 /gdbus/registered-errors 935s ok - glib/gdbus-error.test 935s # Running test: glib/spawn-multithreaded.test 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_F2W452/gdbus/unregistered-errors/.dirs/runtime 935s ok 2 /gdbus/unregistered-errors 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_F2W452/gdbus/transparent-gerror/.dirs/runtime 935s ok 3 /gdbus/transparent-gerror 935s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/home 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/cache 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/system-config2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/config 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/system-data2 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/data 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/state 935s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_F2W452/gdbus/register-error/.dirs/runtime 935s ok 4 /gdbus/register-error 935s # End of gdbus tests 935s TAP version 14 935s # random seed: R02Sc0056a7a7133a1ed07661f6225f1aa30 935s 1..4 935s # Start of gthread tests 936s # Child 8170 (ttl 1) exited, status 0 937s # Executing: glib/spawn-multithreaded.test 937s # Child 8171 (ttl 2) exited, status 0 937s ok 1 /gthread/spawn-childs 937s # slow test /gthread/spawn-childs executed in 2.00 secs 937s # Created pid: 8175 (ttl 1) 937s # Created pid: 8176 (ttl 2) 938s # Child 8175 (ttl 1) exited, status 0 939s # Child 8176 (ttl 2) exited, status 0 939s ok 2 /gthread/spawn-childs-threads 939s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 939s ok 3 /gthread/spawn-sync 939s ok - glib/spawn-multithreaded.test 939s ok 4 /gthread/spawn-async 939s # End of gthread tests 939s # Running test: glib/gdbus-bz627724.test 939s TAP version 14 939s # random seed: R02Sf27a731d842f151eeaab347e18fc852a 939s 1..1 939s # Start of gdbus tests 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/config 940s ok - glib/gdbus-bz627724.test 940s # Running test: glib/refstring.test 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/system-data2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/data 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/state 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_D9G552/gdbus/bz627724/.dirs/runtime 940s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 940s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 940s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 940s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 940s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 940s ok 1 /gdbus/bz627724 940s # End of gdbus tests 940s TAP version 14 940s # random seed: R02Sf4cc0f19f28c36cc723781c72a86cc4f 940s 1..8 940s # Start of refstring tests 940s # s = 'hello, world' (0x1599178f83d0) 940s ok 1 /refstring/base 940s ok 2 /refstring/length 940s ok 3 /refstring/length-auto 940s ok 4 /refstring/length-nuls 940s # s = 'hello, world' (0x1599178f8270) 940s # p = s = 'hello, world' (0x1599178f8270) 940s # releasing p[0x1599178f8270] ('hello, world') 940s # p = 'goodbye, world' (0x1599178f83d0) 940s # releasing p[0x1599178f83d0] ('goodbye, world') 940s # releasing s[0x1599178f8270] ('hello, world') 940s ok 5 /refstring/intern 940s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 940s ok 6 /refstring/hash_equal 940s # /refstring/equal summary: Test g_ref_string_equal() standalone 940s ok 7 /refstring/equal 941s ok 8 /refstring/intern-thread-safety 941s # slow test /refstring/intern-thread-safety executed in 1.89 secs 941s # End of refstring tests 941s ok - glib/refstring.test 941s # Running test: glib/shell.test 941s TAP version 14 941s # random seed: R02Sd85b0c7de13ccb3e24c1373a0a9c7af4 941s 1..51 941s # Start of shell tests 941s # Start of cmdline tests 941s test cmdline: foo bar 941s ok 1 /shell/cmdline/0 941s test cmdline: foo 'bar' 941s ok 2 /shell/cmdline/1 941s test cmdline: foo "bar" 941s ok - glib/shell.test 941s # Running test: glib/properties-refcount4.test 941s ok - glib/properties-refcount4.test 941s # Running test: glib/debugcontroller.test 941s ok - glib/debugcontroller.test 941s # Running test: glib/atomic-c-17.test 941s ok 3 /shell/cmdline/2 941s test cmdline: foo '' 'bar' 941s ok 4 /shell/cmdline/3 941s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 941s ok 5 /shell/cmdline/4 941s test cmdline: foo blah foo bar baz 941s ok 6 /shell/cmdline/5 941s test cmdline: foo ' spaces more spaces lots of spaces in this ' 941s ok 7 /shell/cmdline/6 941s test cmdline: foo \ 941s bar 941s ok 8 /shell/cmdline/7 941s test cmdline: foo '' '' 941s ok 9 /shell/cmdline/8 941s test cmdline: foo \" la la la 941s ok 10 /shell/cmdline/9 941s test cmdline: foo \ foo woo woo\ 941s ok 11 /shell/cmdline/10 941s test cmdline: foo "yada yada \$\"" 941s ok 12 /shell/cmdline/11 941s test cmdline: foo "c:\\" 941s ok 13 /shell/cmdline/12 941s test cmdline: foo # bla bla bla 941s bar 941s ok 14 /shell/cmdline/13 941s test cmdline: foo a#b 941s ok 15 /shell/cmdline/14 941s test cmdline: #foo 941s ok 16 /shell/cmdline/15 941s test cmdline: foo bar \ 941s ok 17 /shell/cmdline/16 941s test cmdline: foo 'bar baz 941s ok 18 /shell/cmdline/17 941s test cmdline: foo '"bar" baz 941s ok 19 /shell/cmdline/18 941s test cmdline: 941s ok 20 /shell/cmdline/19 941s test cmdline: 941s ok 21 /shell/cmdline/20 941s test cmdline: # foo bar 941s ok 22 /shell/cmdline/21 941s test cmdline: foo '/bar/summer'\''09 tours.pdf' 941s ok 23 /shell/cmdline/22 941s # End of cmdline tests 941s # Start of quote tests 941s ok 24 /shell/quote/0 941s ok 25 /shell/quote/1 941s ok 26 /shell/quote/2 941s ok 27 /shell/quote/3 941s ok 28 /shell/quote/4 941s ok 29 /shell/quote/5 941s ok 30 /shell/quote/6 941s # End of quote tests 941s # Start of unquote tests 941s ok 31 /shell/unquote/0 941s ok 32 /shell/unquote/1 941s ok 33 /shell/unquote/2 941s ok 34 /shell/unquote/3 941s ok 35 /shell/unquote/4 941s ok 36 /shell/unquote/5 941s ok 37 /shell/unquote/6 941s ok 38 /shell/unquote/7 941s ok 39 /shell/unquote/8 941s ok 40 /shell/unquote/9 941s ok 41 /shell/unquote/10 941s ok 42 /shell/unquote/11 941s ok 43 /shell/unquote/12 941s ok 44 /shell/unquote/13 941s ok 45 /shell/unquote/14 941s ok 46 /shell/unquote/15 941s ok 47 /shell/unquote/16 941s ok 48 /shell/unquote/17 941s ok 49 /shell/unquote/18 941s ok 50 /shell/unquote/19 941s ok 51 /shell/unquote/20 941s # End of unquote tests 941s # End of shell tests 941s TAP version 14 941s # random seed: R02Sa383977ffc352661bbf93415e3e67e5a 941s 1..1 941s # Start of gobject tests 941s # Start of refcount tests 941s ok 1 /gobject/refcount/properties-4 941s # End of refcount tests 941s # End of gobject tests 941s TAP version 14 941s # random seed: R02S6cd71b6c5fea7091e6af7cf34ffafca5 941s 1..3 941s # Start of debug-controller tests 941s # Start of dbus tests 941s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 941s # GLib-GIO-DEBUG: Debug output enabled 941s # GLib-GIO-DEBUG: Debug output disabled 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s ok 1 /debug-controller/dbus/basic 941s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 941s ok 2 /debug-controller/dbus/duplicate 941s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 941s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 941s # End of dbus tests 941s # End of debug-controller tests 941s TAP version 14 941s # random seed: R02S10561c69e7a008efadb1b069c029f69f 941s 1..2 941s # Start of atomic tests 941s ok 1 /atomic/types 942s ok - glib/atomic-c-17.test 942s ok 2 /atomic/threaded 942s # End of atomic tests 942s # Running test: glib/tls-certificate.test 942s TAP version 14 942s # random seed: R02S928e399f56dbdfaf7293067608f7d646 942s 1..19 942s # Start of tls-certificate tests 942s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 942s ok 1 /tls-certificate/pem-parser 942s ok 2 /tls-certificate/pem-parser-handles-chain 942s ok 3 /tls-certificate/from_file 942s ok 4 /tls-certificate/from_files 942s ok 5 /tls-certificate/from_files_crlf 942s ok 6 /tls-certificate/from_files_pkcs8 942s ok 7 /tls-certificate/from_files_pkcs8enc 942s ok 8 /tls-certificate/list_from_file 942s ok 9 /tls-certificate/pkcs11-uri 942s ok 10 /tls-certificate/pkcs11-uri-unsupported 942s ok 11 /tls-certificate/from_pkcs12 942s ok - glib/tls-certificate.test 942s ok 12 /tls-certificate/from_pkcs12_file 942s ok 13 /tls-certificate/not-valid-before 942s ok 14 /tls-certificate/not-valid-after 942s ok 15 /tls-certificate/subject-name 942s ok 16 /tls-certificate/issuer-name 942s ok 17 /tls-certificate/dns-names 942s ok 18 /tls-certificate/ip-addresses 942s ok 19 /tls-certificate/pem-parser-no-sentinel 942s # End of tls-certificate tests 942s # Running test: glib/utils.test 942s TAP version 14 942s # random seed: R02Sae036d946e23f12224a5fa218bfb40dc 942s 1..41 942s # Start of utils tests 942s ok 1 /utils/language-names 942s ok 2 /utils/locale-variants 942s ok 3 /utils/version 942s ok 4 /utils/appname 942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 942s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 942s ok 5 /utils/prgname-thread-safety 942s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 942s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 942s ok - glib/utils.test 942s # Running test: glib/network-monitor-race.test 942s ok 6 /utils/tmpdir 942s ok 7 /utils/basic_bits 942s ok 8 /utils/bits 942s ok 9 /utils/swap 942s ok 10 /utils/find-program 942s ok 11 /utils/find-program-for-path 942s ok 12 /utils/debug 942s ok 13 /utils/codeset 942s ok 14 /utils/codeset2 942s ok 15 /utils/console-charset 942s ok 16 /utils/gettext 942s ok 17 /utils/username 942s ok 18 /utils/realname 942s ok 19 /utils/hostname 942s ok 20 /utils/xdgdirs 942s ok 21 /utils/specialdir 942s # NAME: Ubuntu 942s ok 22 /utils/os-info 942s ok 23 /utils/clear-pointer 942s ok 24 /utils/clear-pointer-cast 942s ok 25 /utils/take-pointer 942s ok 26 /utils/clear-source 942s ok 27 /utils/misc-mem 942s # /utils/aligned-mem summary: Aligned memory allocator 942s # Alignment must not be zero 942s # Alignment must be a power of two 942s # Alignment must be a multiple of sizeof(void*) 942s ok 28 /utils/aligned-mem 942s # /utils/free-sized summary: Check that g_free_sized() works 942s ok 29 /utils/free-sized 942s ok 30 /utils/nullify 942s ok 31 /utils/atexit 942s ok 32 /utils/check-setuid 942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 942s ok 33 /utils/int-limits 942s ok 34 /utils/clear-list 942s ok 35 /utils/clear-slist 942s ok 36 /utils/steal-handle-id 942s # Start of specialdir tests 942s ok 37 /utils/specialdir/desktop 942s # End of specialdir tests 942s # Start of clear-pointer tests 942s ok 38 /utils/clear-pointer/side-effects 942s # End of clear-pointer tests 942s # Start of aligned-mem tests 942s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 942s ok 39 /utils/aligned-mem/alignment 942s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 942s ok 40 /utils/aligned-mem/zeroed 942s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 942s ok 41 /utils/aligned-mem/free-sized 942s # Start of subprocess tests 942s # End of subprocess tests 942s # End of aligned-mem tests 942s # End of utils tests 942s TAP version 14 942s # random seed: R02S14b4b57a7a66dbf419f349f714c85224 942s 1..1 942s # Start of network-monitor tests 942s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 942s # Executing: glib/network-monitor-race.test 944s ok 1 /network-monitor/create-in-thread 944s # slow test /network-monitor/create-in-thread executed in 2.17 secs 944s # End of network-monitor tests 944s ok - glib/network-monitor-race.test 944s # Running test: glib/volumemonitor.test 944s TAP version 14 944s # random seed: R02S08c55bef818657a46763df6d1c6ee1df 944s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 944s 1..3 944s # Start of volumemonitor tests 944s ok 1 /volumemonitor/connected_drives 944s ok 2 /volumemonitor/volumes 944s ok 3 /volumemonitor/mounts 944s ok - glib/volumemonitor.test 944s # Running test: glib/thumbnail-verification.test 944s ok - glib/thumbnail-verification.test 944s # Running test: glib/notify-init.test 944s ok - glib/notify-init.test 944s # Running test: glib/gdbus-non-socket.test 944s ok - glib/gdbus-non-socket.test 944s # Running test: glib/utf8-misc.test 944s # End of volumemonitor tests 944s TAP version 14 944s # random seed: R02S3417f037be3715f0ff3bdd21f16a6760 944s 1..1 944s # Start of png-thumbs tests 944s ok 1 /png-thumbs/validity 944s # End of png-thumbs tests 944s TAP version 14 944s # random seed: R02Seaaf1728198a78e5b9e0739d6a8a2329 944s 1..1 944s # Start of properties tests 944s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 944s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 944s ok 1 /properties/notify-in-init 944s # End of properties tests 944s TAP version 14 944s # random seed: R02Sd0f23779117d2c2ba525c2adc07777a1 944s 1..1 944s # Start of gdbus tests 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_VBHY52/gdbus/non-socket/.dirs/runtime 944s ok 1 /gdbus/non-socket 944s # End of gdbus tests 944s ok - glib/utf8-misc.test 944s # Running test: glib/gdbus-introspection.test 944s TAP version 14 944s # random seed: R02S6ca971716e392518f4b63789c27c5fad 944s 1..7 944s # Start of utf8 tests 944s ok 1 /utf8/strlen 944s ok 2 /utf8/strncpy 944s ok 3 /utf8/strrchr 944s ok 4 /utf8/reverse 944s ok 5 /utf8/substring 944s ok 6 /utf8/make-valid 944s ok 7 /utf8/truncate-middle 944s # End of utf8 tests 944s TAP version 14 944s # random seed: R02S507b406947e97effcd94a05e019a5745 944s 1..4 944s # Start of gdbus tests 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-parser/.dirs/runtime 944s ok 1 /gdbus/introspection-parser 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-generate/.dirs/runtime 944s ok 2 /gdbus/introspection-generate 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-default-direction/.dirs/runtime 944s ok 3 /gdbus/introspection-default-direction 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_XK7V52/gdbus/introspection-extra-data/.dirs/runtime 944s ok 4 /gdbus/introspection-extra-data 944s # End of gdbus tests 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s ok - glib/gdbus-introspection.test 944s # Running test: glib/portal-support-env-var.test 944s TAP version 14 944s # random seed: R02S66278b957ec4080d5659e73db903d54a 944s 1..1 944s # Start of portal-support tests 944s ok 1 /portal-support/env-var 944s # End of portal-support tests 944s ok - glib/portal-support-env-var.test 944s # Running test: glib/utils-c-11.test 944s TAP version 14 944s # random seed: R02S456bcad4920ea46a8da896eb42b0e81a 944s 1..41 944s # Start of utils tests 944s ok 1 /utils/language-names 944s ok 2 /utils/locale-variants 944s ok 3 /utils/version 944s ok 4 /utils/appname 944s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 944s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 944s ok 5 /utils/prgname-thread-safety 944s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 944s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 944s ok 6 /utils/tmpdir 944s ok 7 /utils/basic_bits 944s ok 8 /utils/bits 944s ok 9 /utils/swap 944s ok 10 /utils/find-program 944s ok 11 /utils/find-program-for-path 944s ok 12 /utils/debug 944s ok 13 /utils/codeset 944s ok 14 /utils/codeset2 944s ok 15 /utils/console-charset 944s ok 16 /utils/gettext 944s ok 17 /utils/username 944s ok 18 /utils/realname 944s ok 19 /utils/hostname 944s ok 20 /utils/xdgdirs 944s ok 21 /utils/specialdir 944s # NAME: Ubuntu 944s ok 22 /utils/os-info 944s ok 23 /utils/clear-pointer 944s ok 24 /utils/clear-pointer-cast 944s ok 25 /utils/take-pointer 944s ok 26 /utils/clear-source 944s ok 27 /utils/misc-mem 944s # /utils/aligned-mem summary: Aligned memory allocator 944s # Alignment must not be zero 944s # Alignment must be a power of two 944s # Alignment must be a multiple of sizeof(void*) 944s ok 28 /utils/aligned-mem 944s # /utils/free-sized summary: Check that g_free_sized() works 944s ok 29 /utils/free-sized 944s ok 30 /utils/nullify 944s ok 31 /utils/atexit 944s ok 32 /utils/check-setuid 944s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 944s ok 33 /utils/int-limits 944s ok 34 /utils/clear-list 944s ok 35 /utils/clear-slist 944s ok 36 /utils/steal-handle-id 944s # Start of specialdir tests 944s ok 37 /utils/specialdir/desktop 944s # End of specialdir tests 944s # Start of clear-pointer tests 944s ok 38 /utils/clear-pointer/side-effects 944s # End of clear-pointer tests 944s # Start of aligned-mem tests 944s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 944s ok 39 /utils/aligned-mem/alignment 944s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 944s ok 40 /utils/aligned-mem/zeroed 944s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 944s ok 41 /utils/aligned-mem/free-sized 944s # Start of subprocess tests 944s # End of subprocess tests 944s # End of aligned-mem tests 944s # End of utils tests 944s ok - glib/utils-c-11.test 944s # Running test: glib/param.test 944s TAP version 14 944s # random seed: R02S4654a92b2df1cf92bfc28eb1ac94c2fd 944s 1..32 944s # Start of param tests 944s ok 1 /param/value 944s ok 2 /param/strings 944s ok 3 /param/qdata 944s ok 4 /param/validate 944s ok 5 /param/convert 944s ok 6 /param/implement # SKIP Skipping slow /param/implement test 944s ok 7 /param/default 944s ok 8 /param/is-valid-name 944s # Start of invalid-name tests 944s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 944s ok 9 /param/invalid-name/colon 944s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 944s ok 10 /param/invalid-name/first-char 944s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 944s ok 11 /param/invalid-name/empty 944s # End of invalid-name tests 944s # Start of implement tests 944s # Start of subprocess tests 944s # End of subprocess tests 944s # End of implement tests 944s # End of param tests 944s # Start of value tests 944s ok 12 /value/transform 944s # End of value tests 944s # Start of paramspec tests 944s ok 13 /paramspec/char 944s ok 14 /paramspec/uchar 944s ok 15 /paramspec/int 944s ok 16 /paramspec/uint 944s ok 17 /paramspec/long 944s ok 18 /paramspec/ulong 944s ok 19 /paramspec/int64 944s ok 20 /paramspec/uint64 944s ok 21 /paramspec/float 944s ok 22 /paramspec/double 944s ok 23 /paramspec/unichar 944s ok 24 /paramspec/param 944s ok 25 /paramspec/null-param 944s ok 26 /paramspec/string 944s ok 27 /paramspec/override 944s ok 28 /paramspec/gtype 944s ok 29 /paramspec/variant 944s ok 30 /paramspec/custom 944s ok 31 /paramspec/pool 944s # Start of variant tests 944s ok 32 /paramspec/variant/cmp 944s # End of variant tests 944s # End of paramspec tests 944s ok - glib/param.test 944s # Running test: glib/memory-settings-backend.test 944s TAP version 14 944s # random seed: R02S0e43aca150b180d4236d94a6ad8dee1c 944s 1..1 944s # Start of memory-settings-backend tests 944s ok 1 /memory-settings-backend/extension-point-registered 944s # End of memory-settings-backend tests 944s ok - glib/memory-settings-backend.test 944s # Running test: glib/fileattributematcher.test 944s TAP version 14 944s # random seed: R02Sa3c3b858c4466a8d0fbb973abc062b54 944s 1..3 944s # Start of fileattributematcher tests 944s ok 1 /fileattributematcher/exact 944s ok 2 /fileattributematcher/equality 944s ok 3 /fileattributematcher/subtract 944s # End of fileattributematcher tests 944s ok - glib/fileattributematcher.test 944s # Running test: glib/tree.test 944s TAP version 14 944s # random seed: R02S5fde19562fadf02ddfd94e2b089f0b74 944s 1..7 944s # Start of tree tests 944s ok 1 /tree/search 944s ok 2 /tree/remove 944s ok 3 /tree/destroy 944s ok 4 /tree/traverse 944s ok 5 /tree/insert 944s ok 6 /tree/bounds 944s ok 7 /tree/remove-all 944s # End of tree tests 944s ok - glib/tree.test 944s # Running test: glib/registered-type-info.test 944s TAP version 14 944s # random seed: R02Se8020e437b8fd860d7f4d33d291fdf98 944s 1..1 944s # Start of registered-type-info tests 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_W7QR52/registered-type-info/boxed/.dirs/runtime 944s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 944s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 944s # Expecting CClosure to not be boxed 944s # Expecting TypeCValue to not be boxed 944s # Expecting InitiallyUnownedClass to not be boxed 944s # Expecting BookmarkFile to be boxed 944s # Expecting Closure to be boxed 944s # Expecting Object to not be boxed 944s ok 1 /registered-type-info/boxed 944s # End of registered-type-info tests 944s ok - glib/registered-type-info.test 944s # Running test: glib/gdbus-method-invocation.test 944s TAP version 14 944s # random seed: R02Sfe43dd470710524b5bc8b513fd2df166 944s 1..1 944s # Start of gdbus tests 944s # Start of method-invocation tests 944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/home 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/cache 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/system-config2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/config 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/system-data2 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/data 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/state 944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_PO8Q52/gdbus/method-invocation/return/.dirs/runtime 944s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 944s # Calling org.freedesktop.DBus.Properties.Get 944s # Calling org.freedesktop.DBus.Properties.Get 944s # Calling org.freedesktop.DBus.Properties.Get 944s # Calling org.freedesktop.DBus.Properties.Set 944s # Calling org.freedesktop.DBus.Properties.GetAll 944s # Calling org.example.Foo.WrongReturnType 944s # Calling org.example.Foo.GetFDs 944s # Calling org.example.Foo.GetFDs 944s # Calling org.example.Foo.ReturnError 944s # Calling org.example.Foo.CloseBeforeReturning 944s ok 1 /gdbus/method-invocation/return 944s # End of method-invocation tests 944s # End of gdbus tests 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 944s ok - glib/gdbus-method-invocation.test 944s # Running test: glib/deftype.test 944s ok - glib/deftype.test 944s # Running test: glib/closure.test 944s TAP version 14 944s # random seed: R02S41a1ad0e9bba6a7fa815597de8635db5 944s 1..6 944s # Start of closure tests 944s ok 1 /closure/idle 944s ok 2 /closure/timeout 944s ok 3 /closure/iochannel 944s ok 4 /closure/child 944s ok 5 /closure/fd 944s ok 6 /closure/signal 944s # End of closure tests 944s ok - glib/closure.test 944s # Running test: glib/gvariant.test 944s TAP version 14 944s # random seed: R02Se8483f05634fc7e2c88d67f6e0be4c26 944s 1..69 944s # Start of gvariant tests 944s ok 1 /gvariant/type 944s ok 2 /gvariant/typeinfo 944s ok 3 /gvariant/string 944s ok 4 /gvariant/utf8 944s ok 5 /gvariant/utf8-new-strings 945s ok 6 /gvariant/containers 945s ok 7 /gvariant/format-strings 945s ok 8 /gvariant/invalid-varargs 945s ok 9 /gvariant/varargs 945s ok 10 /gvariant/valist 945s ok 11 /gvariant/builder-memory 945s ok 12 /gvariant/hashing 945s ok 13 /gvariant/byteswap 945s ok 14 /gvariant/parser 945s ok 15 /gvariant/parse-failures 945s ok 16 /gvariant/parse-positional 945s ok 17 /gvariant/floating 945s ok 18 /gvariant/bytestring 945s ok 19 /gvariant/lookup-value 945s ok 20 /gvariant/lookup 945s ok 21 /gvariant/compare 945s ok 22 /gvariant/equal 945s ok 23 /gvariant/fixed-array 945s ok 24 /gvariant/check-format-string 945s ok 25 /gvariant/checksum-basic 945s ok 26 /gvariant/checksum-nested 945s ok 27 /gvariant/gbytes 945s ok 28 /gvariant/print-context 945s ok 29 /gvariant/error-quark 945s ok 30 /gvariant/stack-builder-init 945s ok 31 /gvariant/stack-builder-init-static 945s ok 32 /gvariant/stack-builder-init-unset 945s ok 33 /gvariant/stack-dict-init 946s ok 34 /gvariant/unaligned-construction 946s # Start of type tests 946s # Start of string-scan tests 946s # Start of recursion tests 946s ok 35 /gvariant/type/string-scan/recursion/tuple 946s ok 36 /gvariant/type/string-scan/recursion/array 946s # End of recursion tests 946s # End of string-scan tests 946s # End of type tests 946s # Start of serialiser tests 946s ok 37 /gvariant/serialiser/maybe 946s ok 38 /gvariant/serialiser/array 946s ok 39 /gvariant/serialiser/tuple 946s ok 40 /gvariant/serialiser/variant 946s ok 41 /gvariant/serialiser/strings 947s # Executing: glib/gvariant.test 951s ok 42 /gvariant/serialiser/byteswap 951s # slow test /gvariant/serialiser/byteswap executed in 4.87 secs 951s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 951s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 951s ok 43 /gvariant/serialiser/children 951s # Start of byteswap tests 951s ok 44 /gvariant/serialiser/byteswap/zero-sized 951s # End of byteswap tests 951s # Start of fuzz tests 952s ok 45 /gvariant/serialiser/fuzz/1% 952s # slow test /gvariant/serialiser/fuzz/1% executed in 0.84 secs 952s ok 46 /gvariant/serialiser/fuzz/5% 952s # slow test /gvariant/serialiser/fuzz/5% executed in 0.66 secs 952s # Executing: glib/gvariant.test 953s ok 47 /gvariant/serialiser/fuzz/9% 953s ok 48 /gvariant/serialiser/fuzz/13% 953s # slow test /gvariant/serialiser/fuzz/13% executed in 0.68 secs 953s ok 49 /gvariant/serialiser/fuzz/17% 953s # End of fuzz tests 953s # End of serialiser tests 953s # Start of utf8 tests 953s # Start of subprocess tests 953s # End of subprocess tests 953s # End of utf8 tests 953s # Start of varargs tests 953s # Start of subprocess tests 953s # End of subprocess tests 953s # End of varargs tests 953s # Start of byteswap tests 953s # /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. 953s ok 50 /gvariant/byteswap/non-normal-non-aligned 953s # End of byteswap tests 953s # Start of parser tests 953s ok 51 /gvariant/parser/integer-bounds 953s ok 52 /gvariant/parser/recursion 953s # Start of recursion tests 953s ok 53 /gvariant/parser/recursion/typedecls 953s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 953s # Text form 0: @mmmu 5 953s # Text form 1: @mmmas ['hello'] 953s # Text form 2: @mmmu just just nothing 953s # Text form 3: @mmmas just just nothing 953s # Text form 4: @mmmu just nothing 953s # Text form 5: @mmmas just nothing 953s # Text form 6: @mmmu nothing 953s # Text form 7: @mmmas nothing 953s ok 54 /gvariant/parser/recursion/maybes 953s # End of recursion tests 953s # End of parser tests 953s # Start of parse tests 953s # Start of subprocess tests 953s # End of subprocess tests 953s # End of parse tests 953s # Start of normal-checking tests 953s ok 55 /gvariant/normal-checking/tuples 953s ok 56 /gvariant/normal-checking/array-offsets 953s ok - glib/gvariant.test 953s # Running test: glib/appmonitor.test 953s ok - glib/appmonitor.test 953s # Running test: glib/hostutils.test 953s ok - glib/hostutils.test 953s # Running test: glib/type.test 953s ok - glib/type.test 953s # Running test: glib/cxx-14.test 953s ok 57 /gvariant/normal-checking/array-offsets2 953s ok 58 /gvariant/normal-checking/tuple-offsets 953s ok 59 /gvariant/normal-checking/tuple-offsets2 953s ok 60 /gvariant/normal-checking/tuple-offsets3 953s ok 61 /gvariant/normal-checking/tuple-offsets4 953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 953s ok 62 /gvariant/normal-checking/tuple-offsets5 953s ok 63 /gvariant/normal-checking/empty-object-path 953s # Start of array-offsets tests 953s ok 64 /gvariant/normal-checking/array-offsets/overlapped 953s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 953s # End of array-offsets tests 953s # Start of tuple-offsets tests 953s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 953s # End of tuple-offsets tests 953s # End of normal-checking tests 953s # Start of recursion-limits tests 953s ok 67 /gvariant/recursion-limits/variant-in-variant 953s ok 68 /gvariant/recursion-limits/array-in-variant 953s # End of recursion-limits tests 953s # End of gvariant tests 953s # Start of gvarianttype tests 953s ok 69 /gvarianttype/hash 953s # End of gvarianttype tests 953s TAP version 14 953s # random seed: R02Sfeca67e9389e6b24445d8948d2a0efcd 953s 1..1 953s # Start of monitor tests 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_F18652/monitor/app/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_F18652/monitor/app/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_F18652/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_F18652/monitor/app/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_F18652/monitor/app/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_F18652/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_F18652/monitor/app/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_F18652/monitor/app/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_F18652/monitor/app/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_F18652/monitor/app/.dirs/runtime 953s # Using data directory: /tmp/test_appmonitor_F18652/monitor/app/.dirs/data 953s ok 1 /monitor/app 953s # End of monitor tests 953s TAP version 14 953s # random seed: R02S45b36a99e5cf4293bb9defd0e1492e51 953s 1..3 953s # Start of hostutils tests 953s ok 1 /hostutils/to_ascii 953s ok 2 /hostutils/to_unicode 953s ok 3 /hostutils/is_ip_addr 953s # End of hostutils tests 953s TAP version 14 953s # random seed: R02S339ad469c65f9d2aaa70879dad9d1335 953s 1..6 953s # Start of type tests 953s ok 1 /type/registration-serial 953s ok 2 /type/interface-prerequisite 953s ok 3 /type/interface-check 953s ok 4 /type/next-base 953s ok 5 /type/is-a 953s # Invalid types can?t be queried. 953s # Unclassed types can?t be queried. 953s ok 6 /type/query 953s # End of type tests 953s TAP version 14 953s # random seed: R02Sb86986576cfb75386868c56b98ece0c0 953s 1..2 953s # Start of gtask tests 953s ok - glib/cxx-14.test 953s # Running test: glib/giomodule.test 953s ok - glib/giomodule.test 953s # Running test: glib/converter.test 953s ok - glib/converter.test 953s # Running test: glib/autoptr.test 953s ok - glib/autoptr.test 953s # Running test: glib/ifaceproperties.test 953s ok - glib/ifaceproperties.test 953s # Running test: glib/g-file-info-filesystem-readonly.test 953s ok - glib/g-file-info-filesystem-readonly.test 953s # Running test: glib/mimeapps.test 953s # 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. 953s ok 1 /gtask/name 953s # Start of name tests 953s # 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. 953s ok 2 /gtask/name/macro-wrapper 953s # End of name tests 953s # End of gtask tests 953s TAP version 14 953s # random seed: R02S1d1d7bc23a5f3d7deb176f08637e5c9c 953s 1..3 953s # Start of giomodule tests 953s ok 1 /giomodule/extension-point 953s ok 2 /giomodule/module-scan-all 953s ok 3 /giomodule/module-scan-all-with-scope 953s # End of giomodule tests 953s TAP version 14 953s # random seed: R02S26b050c59570f7f8e92f708f79e17d24 953s 1..2 953s # Start of converter tests 953s ok 1 /converter/bytes 953s ok 2 /converter/extra-bytes-at-end 953s # End of converter tests 953s TAP version 14 953s # random seed: R02S20e626b99bccdc2ff7f01fb61f8935c5 953s 1..6 953s # Start of autoptr tests 953s ok 1 /autoptr/autoptr 953s ok 2 /autoptr/autoptr_steal 953s ok 3 /autoptr/autolist 953s ok 4 /autoptr/autoslist 953s ok 5 /autoptr/autoqueue 953s ok 6 /autoptr/autoclass 953s # End of autoptr tests 953s TAP version 14 953s # random seed: R02S824d811782096b66d5dd16fb3028ca0c 953s 1..7 953s # Start of interface tests 953s # Start of properties tests 953s ok 1 /interface/properties/set 953s ok 2 /interface/properties/notify 953s ok 3 /interface/properties/find-overridden 953s ok 4 /interface/properties/list-overridden 953s ok 5 /interface/properties/find-interface 953s ok 6 /interface/properties/list-interface 953s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 953s ok 7 /interface/properties/not-overridden 953s # End of properties tests 953s # End of interface tests 953s TAP version 14 953s # random seed: R02Sfba5fc5b9b9ec9f04bc4f534c889a31b 953s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 953s 1..2 953s # Start of g-file-info-filesystem-readonly tests 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 953s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_V7O452/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 953s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 953s # End of g-file-info-filesystem-readonly tests 953s TAP version 14 953s # random seed: R02S1412e9c12d09d600c010dc28c8f80576 953s 1..7 953s # Start of appinfo tests 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/runtime 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-data1/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/myapp.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/myapp2.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/myapp3.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/myapp4.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/myapp5.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 953s # removing '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/all/.dirs/data/applications/mimeinfo.cache' 953s ok 1 /appinfo/all 953s # Start of mime tests 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/runtime 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-data1/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 953s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/all/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config 953s ok 2 /appinfo/mime/api 953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/home 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/cache 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-config2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-data2 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/state 953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/runtime 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-data1/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 953s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 953s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 953s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 953s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config 954s ok 3 /appinfo/mime/default 954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/home 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/cache 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-config2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-data2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/state 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/runtime 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-data1/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 954s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config 954s ok 4 /appinfo/mime/file 954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/home 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/cache 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-config2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/config 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-data2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/state 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/runtime 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 954s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 954s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/config 954s ok 5 /appinfo/mime/scheme-handler 954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/home 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/cache 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-config2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-data2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/state 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/runtime 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-data1/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 954s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config 954s ok 6 /appinfo/mime/default-last-used 954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/home 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/cache 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-config2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/config 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-data2 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/state 954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/runtime 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 954s # removing '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 954s # creating '/tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 954s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_U2T452/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_U2T452/appinfo/mime/ignore-nonexisting/.dirs/config 954s ok 7 /appinfo/mime/ignore-nonexisting 954s # End of mime tests 954s # End of appinfo tests 954s ok - glib/mimeapps.test 954s # Running test: glib/scannerapi.test 954s TAP version 14 954s # random seed: R02S010eac0ef301bd5e2576ee65a889de19 954s 1..4 954s # Start of scanner tests 954s ok 1 /scanner/warn 954s ok 2 /scanner/error 954s ok 3 /scanner/symbols 954s ok 4 /scanner/tokens 954s # End of scanner tests 954s ok - glib/scannerapi.test 954s # Running test: glib/signals.test 954s TAP version 14 954s # random seed: R02S374564b670c247070b73991c68c0d9f8 954s 1..31 954s # Start of gobject tests 954s # Start of signals tests 954s ok 1 /gobject/signals/all-types 954s ok 2 /gobject/signals/variant 954s ok 3 /gobject/signals/destroy-target-object 954s ok - glib/signals.test 954s # Running test: glib/properties-refcount1.test 954s ok 4 /gobject/signals/generic-marshaller-1 954s ok 5 /gobject/signals/generic-marshaller-2 954s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 954s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 954s ok 8 /gobject/signals/generic-marshaller-int-return 954s ok 9 /gobject/signals/generic-marshaller-uint-return 954s ok 10 /gobject/signals/generic-marshaller-interface-return 954s ok 11 /gobject/signals/custom-marshaller 954s ok 12 /gobject/signals/connect 954s ok 13 /gobject/signals/emission-hook 954s ok 14 /gobject/signals/emitv 954s ok 15 /gobject/signals/accumulator 954s # Signal: accumulator-class-first 954s # Signal: accumulator-class-last 954s # Signal: accumulator-class-cleanup 954s # Signal: accumulator-class-first-last 954s # Signal: accumulator-class-first-last-cleanup 954s # Signal: accumulator-class-last-cleanup 954s ok 16 /gobject/signals/accumulator-class 954s ok 17 /gobject/signals/introspection 954s ok 18 /gobject/signals/block-handler 954s ok 19 /gobject/signals/stop-emission 954s ok 20 /gobject/signals/invocation-hint 954s ok 21 /gobject/signals/test-disconnection-wrong-object 954s ok 22 /gobject/signals/clear-signal-handler 954s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 954s ok 23 /gobject/signals/lookup 954s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 954s ok 24 /gobject/signals/parse-name 954s ok 25 /gobject/signals/is-valid-name 954s ok 26 /gobject/signals/weak-ref-disconnect 954s # Start of lookup tests 954s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 954s ok 27 /gobject/signals/lookup/invalid 954s # End of lookup tests 954s # Start of parse-name tests 954s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 954s # Parser input: 954s # Parser input: 7zip 954s # Parser input: invalid:signal 954s # Parser input: simple-detailed:: 954s # Parser input: simple-detailed: 954s # Parser input: : 954s # Parser input: :: 954s # Parser input: :valid-detail 954s # Parser input: ::valid-detail 954s ok 28 /gobject/signals/parse-name/invalid 954s # End of parse-name tests 954s # Start of invalid-name tests 954s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 954s ok 29 /gobject/signals/invalid-name/colon 954s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 954s ok 30 /gobject/signals/invalid-name/first-char 954s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 954s ok 31 /gobject/signals/invalid-name/empty 954s # End of invalid-name tests 954s # End of signals tests 954s # End of gobject tests 954s TAP version 14 954s # random seed: R02S15bb753a1f3847693e97c9218c29d524 954s 1..1 954s # Start of gobject tests 954s # Start of refcount tests 954s # .d 954s # .f 954s # .e 954s # .c 954s # .b 954s # .f 954s # .d 954s # .c 954s # .b 954s # .e 954s # .c 954s # .d 954s # .f 954s # .b 954s # .e 954s # .c 954s # .f 954s # .d 954s # .b 954s # .e 954s # .f 954s # .c 954s # .d 954s # .b 954s # .e 954s # .c 954s # .f 954s # .d 955s # .b 955s # .e 955s # .c 955s # .e 955s # .d 955s # .f 955s # .e 955s # .b 955s # .c 955s # .f 955s # .e 955s # .d 955s # .b 955s # .c 955s # .f 955s # .e 955s # .d 955s # .b 955s # .c 955s # .f 955s # .e 955s # .d 955s # .b 955s # .f 955s # .c 955s # .e 955s # .d 955s # .b 955s # .f 955s # .c 955s # .f 955s # .e 955s # .d 956s # .b 956s # .f 956s # .e 956s # .c 956s # .d 956s # .b 956s # .f 956s # .e 956s # .c 956s # .d 956s # .b 956s # .f 956s # .e 956s # .c 956s # .d 956s # .b 956s # .f 956s # .e 956s # .c 956s # .d 956s # .f 956s # .b 956s # .e 956s # .c 956s # .d 956s # .f 956s # .b 956s # .e 956s # .d 956s # .c 956s # .b 956s # .f 957s # .d 957s # .e 957s ok 1 /gobject/refcount/properties-1 957s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 957s # End of refcount tests 957s # End of gobject tests 957s ok - glib/properties-refcount1.test 957s # Running test: glib/resources.test 957s TAP version 14 957s # random seed: R02S03788537ce5a77930357574c3dd1ec54 957s 1..19 957s # Start of resource tests 957s ok 1 /resource/file 957s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 957s ok 2 /resource/file-path 957s ok 3 /resource/data 957s ok 4 /resource/data_unaligned 957s ok 5 /resource/data-corrupt 957s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 957s ok 6 /resource/data-corrupt-compression 957s ok 7 /resource/data-empty 957s ok 8 /resource/registered 957s ok 9 /resource/manual 957s ok 10 /resource/manual2 957s ok 11 /resource/automatic 957s ok 12 /resource/module 957s ok 13 /resource/binary-linked 957s ok 14 /resource/64k 957s GLib-GIO-Message: 10:47:07.999: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 957s GLib-GIO-Message: 10:47:07.999: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 957s GLib-GIO-Message: 10:47:07.999: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 957s ok 15 /resource/overlay 957s ok 16 /resource/digits 957s ok 17 /resource/has-children 957s # Start of uri tests 957s ok 18 /resource/uri/query-info 957s ok 19 /resource/uri/file 957s # End of uri tests 957s # End of resource tests 957s ok - glib/resources.test 957s # Running test: glib/atomic-c-11.test 957s TAP version 14 957s # random seed: R02S76e5db928e2bd2947680d7ae1a3bea14 957s 1..2 957s # Start of atomic tests 957s ok 1 /atomic/types 957s ok 2 /atomic/threaded 957s # End of atomic tests 957s ok - glib/atomic-c-11.test 957s # Running test: glib/power-profile-monitor-portal.test 957s TAP version 13 957s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 957s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 957s 1..2 957s ok - glib/power-profile-monitor-portal.test 957s # Running test: glib/object-info.test 957s TAP version 14 957s # random seed: R02S93f50ad670800915c79685a6398f2972 957s 1..2 957s # Start of object-info tests 957s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/home 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/cache 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/system-config2 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/config 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/system-data2 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/data 957s ok - glib/object-info.test 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/state 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_I1Z852/object-info/find-method-using-interfaces/.dirs/runtime 957s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 957s ok 1 /object-info/find-method-using-interfaces 957s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/home 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/cache 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/system-config2 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/config 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/system-data2 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/data 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/state 957s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_I1Z852/object-info/find-vfunc-using-interfaces/.dirs/runtime 957s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 957s ok 2 /object-info/find-vfunc-using-interfaces 957s # End of object-info tests 957s # Running test: glib/array-test.test 957s TAP version 14 957s # random seed: R02S7ecb68c89eba802b99ae74aefebd0d15 957s 1..113 957s # Start of array tests 957s ok 1 /array/ref-count 957s ok 2 /array/steal 957s ok 3 /array/clear-func 957s ok 4 /array/binary-search 957s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 957s ok 5 /array/copy-sized 957s ok 6 /array/overflow-append-vals 957s ok 7 /array/overflow-set-size 957s # Start of new tests 957s ok 8 /array/new/zero-terminated 957s ok 9 /array/new/take 957s ok 10 /array/new/take-zero-terminated 957s # Start of take tests 957s ok 11 /array/new/take/empty 957s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 957s # End of take tests 957s # End of new tests 957s # Start of set-size tests 957s ok 13 /array/set-size/non-zero-terminated-no-clear 957s ok 14 /array/set-size/non-zero-terminated-clear 957s ok 15 /array/set-size/zero-terminated-no-clear 957s ok 16 /array/set-size/zero-terminated-clear 957s # Start of sized tests 957s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 957s ok 18 /array/set-size/sized/non-zero-terminated-clear 957s ok 19 /array/set-size/sized/zero-terminated-no-clear 957s ok 20 /array/set-size/sized/zero-terminated-clear 957s # End of sized tests 957s # End of set-size tests 957s # Start of append-val tests 957s ok 21 /array/append-val/non-zero-terminated-no-clear 957s ok 22 /array/append-val/non-zero-terminated-clear 957s ok 23 /array/append-val/zero-terminated-no-clear 957s ok 24 /array/append-val/zero-terminated-clear 957s # End of append-val tests 957s # Start of prepend-val tests 957s ok 25 /array/prepend-val/non-zero-terminated-no-clear 957s ok 26 /array/prepend-val/non-zero-terminated-clear 957s ok 27 /array/prepend-val/zero-terminated-no-clear 957s ok 28 /array/prepend-val/zero-terminated-clear 957s # End of prepend-val tests 957s # Start of prepend-vals tests 957s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 957s ok 30 /array/prepend-vals/non-zero-terminated-clear 957s ok 31 /array/prepend-vals/zero-terminated-no-clear 957s ok 32 /array/prepend-vals/zero-terminated-clear 957s # End of prepend-vals tests 957s # Start of insert-vals tests 957s ok 33 /array/insert-vals/non-zero-terminated-no-clear 957s ok 34 /array/insert-vals/non-zero-terminated-clear 957s ok 35 /array/insert-vals/zero-terminated-no-clear 957s ok 36 /array/insert-vals/zero-terminated-clear 957s # End of insert-vals tests 957s # Start of remove-index tests 957s ok 37 /array/remove-index/non-zero-terminated-no-clear 957s ok 38 /array/remove-index/non-zero-terminated-clear 957s ok 39 /array/remove-index/zero-terminated-no-clear 957s ok 40 /array/remove-index/zero-terminated-clear 957s # End of remove-index tests 957s # Start of remove-index-fast tests 957s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 957s ok 42 /array/remove-index-fast/non-zero-terminated-clear 957s ok 43 /array/remove-index-fast/zero-terminated-no-clear 957s ok 44 /array/remove-index-fast/zero-terminated-clear 957s # End of remove-index-fast tests 957s # Start of remove-range tests 957s ok 45 /array/remove-range/non-zero-terminated-no-clear 957s ok 46 /array/remove-range/non-zero-terminated-clear 957s ok 47 /array/remove-range/zero-terminated-no-clear 957s ok 48 /array/remove-range/zero-terminated-clear 957s # End of remove-range tests 957s # Start of copy tests 957s ok 49 /array/copy/non-zero-terminated-no-clear 957s ok 50 /array/copy/non-zero-terminated-clear 957s ok 51 /array/copy/zero-terminated-no-clear 957s ok 52 /array/copy/zero-terminated-clear 957s # End of copy tests 957s # Start of sort tests 957s ok 53 /array/sort/non-zero-terminated-no-clear 957s ok 54 /array/sort/non-zero-terminated-clear 957s ok 55 /array/sort/zero-terminated-no-clear 957s ok 56 /array/sort/zero-terminated-clear 957s # End of sort tests 957s # Start of sort-with-data tests 957s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 957s ok 58 /array/sort-with-data/non-zero-terminated-clear 957s ok 59 /array/sort-with-data/zero-terminated-no-clear 957s ok 60 /array/sort-with-data/zero-terminated-clear 957s # End of sort-with-data tests 957s # End of array tests 957s # Start of pointerarray tests 957s ok 61 /pointerarray/add 957s ok 62 /pointerarray/insert 957s ok 63 /pointerarray/new-take 957s ok 64 /pointerarray/new-take-null-terminated 957s ok 65 /pointerarray/new-from-array 957s ok 66 /pointerarray/new-from-null-terminated-array 957s ok 67 /pointerarray/free-func 957s ok 68 /pointerarray/array_extend_and_steal 957s ok 69 /pointerarray/sort 957s ok 70 /pointerarray/sort-with-data 957s ok 71 /pointerarray/sort-values 957s ok 72 /pointerarray/sort-values-with-data 957s ok 73 /pointerarray/remove-range 957s ok 74 /pointerarray/steal 957s # Start of free tests 957s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 957s ok 75 /pointerarray/free/null-terminated 957s # End of free tests 957s # Start of new-take tests 957s ok 76 /pointerarray/new-take/empty 957s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 957s ok 78 /pointerarray/new-take/with-free-func 957s # End of new-take tests 957s # Start of new-take-null-terminated tests 957s ok 79 /pointerarray/new-take-null-terminated/empty 957s ok 80 /pointerarray/new-take-null-terminated/with-free-func 957s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 957s # End of new-take-null-terminated tests 957s # Start of new-from-array tests 957s ok 82 /pointerarray/new-from-array/empty 957s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 957s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 957s # End of new-from-array tests 957s # Start of new-from-null-terminated-array tests 957s ok 85 /pointerarray/new-from-null-terminated-array/empty 957s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 957s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 957s # End of new-from-null-terminated-array tests 957s # Start of ref-count tests 957s ok 88 /pointerarray/ref-count/not-null-terminated 957s ok 89 /pointerarray/ref-count/null-terminated 957s # End of ref-count tests 957s # Start of array_copy tests 957s # /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 957s ok 90 /pointerarray/array_copy/not-null-terminated 957s # /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 957s ok 91 /pointerarray/array_copy/null-terminated 957s # End of array_copy tests 957s # Start of array_extend tests 957s ok 92 /pointerarray/array_extend/not-null-terminated 957s ok 93 /pointerarray/array_extend/null-terminated 957s # End of array_extend tests 957s # Start of sort tests 957s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 957s ok 94 /pointerarray/sort/example 957s # End of sort tests 957s # Start of sort-with-data tests 957s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 957s ok 95 /pointerarray/sort-with-data/example 957s # End of sort-with-data tests 957s # Start of sort-values tests 957s ok 96 /pointerarray/sort-values/example 957s # End of sort-values tests 957s # Start of sort-values-with-data tests 957s ok 97 /pointerarray/sort-values-with-data/example 957s # End of sort-values-with-data tests 957s # Start of find tests 957s ok 98 /pointerarray/find/empty 957s ok 99 /pointerarray/find/non-empty 957s # End of find tests 957s # Start of steal_index tests 957s ok 100 /pointerarray/steal_index/not-null-terminated 957s ok 101 /pointerarray/steal_index/null-terminated 957s # End of steal_index tests 957s # End of pointerarray tests 957s # Start of bytearray tests 957s ok 102 /bytearray/steal 957s ok 103 /bytearray/append 957s ok 104 /bytearray/prepend 957s ok 105 /bytearray/remove 957s ok 106 /bytearray/remove-fast 957s ok 107 /bytearray/remove-range 957s ok 108 /bytearray/ref-count 957s ok 109 /bytearray/sort 957s ok 110 /bytearray/sort-with-data 957s ok 111 /bytearray/new-take 957s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 957s ok 113 /bytearray/free-to-bytes 957s # End of bytearray tests 957s ok - glib/array-test.test 957s # Running test: glib/node.test 957s TAP version 14 957s # random seed: R02S4a1a0ea3e7da74edfb18e093db008f28 957s 1..6 957s # Start of node tests 957s ok 1 /node/allocation 957s ok 2 /node/construction 957s ok 3 /node/traversal 957s ok 4 /node/misc 957s ok 5 /node/unlink 957s ok 6 /node/copy 957s # End of node tests 957s ok - glib/node.test 957s # Running test: glib/contexts.test 957s TAP version 14 957s # random seed: R02Sb2f166e70066073525cea0c4e3fbb82d 957s 1..5 957s # Start of gio tests 957s # Start of contexts tests 957s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 957s ok 1 /gio/contexts/thread-independence 957s ok 2 /gio/contexts/context-independence 957s # Start of context-specific tests 957s ok 3 /gio/contexts/context-specific/identity 957s # Executing: glib/contexts.test 957s ok 4 /gio/contexts/context-specific/emit 957s ok 5 /gio/contexts/context-specific/emit-and-unref 957s # End of context-specific tests 957s # End of contexts tests 957s # End of gio tests 957s ok - glib/contexts.test 957s # Running test: glib/signals-refcount4.test 957s TAP version 14 957s # random seed: R02Sdd54eebf27099b656fb9d545d91ff9e2 957s 1..1 957s # Start of gobject tests 957s # Start of refcount tests 957s # init 0x1d1039ddddd0 957s # 957s # init 0x1d1039dda310 957s # 962s # Executing: glib/signals-refcount4.test 962s # dispose 0x1d1039ddddd0! 962s # 962s # dispose 0x1d1039dda310! 962s # 962s ok 1 /gobject/refcount/signals 962s # slow test /gobject/refcount/signals executed in 5.00 secs 962s # End of refcount tests 962s # End of gobject tests 962s ok - glib/signals-refcount4.test 962s # Running test: glib/cxx-17.test 962s TAP version 14 962s # random seed: R02S9d984d0b50a416ddfbc0a9c6d4b10cc7 962s 1..2 962s # Start of gtask tests 962s # 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. 962s ok 1 /gtask/name 962s # Start of name tests 962s # 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. 962s ok - glib/cxx-17.test 962s ok 2 /gtask/name/macro-wrapper 962s # End of name tests 962s # End of gtask tests 963s # Running test: glib/mem-overflow.test 963s ok - glib/mem-overflow.test 963s # Running test: glib/sequence.test 963s TAP version 14 963s # random seed: R02S9c2451396cce81c039da0384d6b2a8dc 963s 1..2 963s # Start of mem tests 963s ok 1 /mem/overflow 963s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 963s ok 2 /mem/empty-alloc 963s # Start of overflow tests 963s # Start of subprocess tests 963s # End of subprocess tests 963s # End of overflow tests 963s # Start of empty-alloc tests 963s # End of empty-alloc tests 963s # End of mem tests 963s TAP version 14 963s # random seed: R02S38c45e76674ff699b8429743bde40d44 963s 1..16 963s # Start of sequence tests 963s ok 1 /sequence/out-of-range-jump 963s ok 2 /sequence/iter-move 963s ok 3 /sequence/insert-sorted-non-pointer 963s ok 4 /sequence/stable-sort 963s ok 5 /sequence/is_empty 963s # Start of random tests 963s ok 6 /sequence/random/seed:825541564 963s # slow test /sequence/random/seed:825541564 executed in 0.73 secs 964s ok 7 /sequence/random/seed:801678400 964s # slow test /sequence/random/seed:801678400 executed in 0.73 secs 965s ok 8 /sequence/random/seed:1477639090 965s # slow test /sequence/random/seed:1477639090 executed in 0.74 secs 966s ok 9 /sequence/random/seed:3369132895 966s # slow test /sequence/random/seed:3369132895 executed in 0.67 secs 966s ok 10 /sequence/random/seed:1192944867 966s # slow test /sequence/random/seed:1192944867 executed in 0.73 secs 967s ok 11 /sequence/random/seed:770458294 967s # slow test /sequence/random/seed:770458294 executed in 0.81 secs 967s # Executing: glib/sequence.test 968s ok 12 /sequence/random/seed:1099575817 968s # slow test /sequence/random/seed:1099575817 executed in 0.81 secs 969s ok 13 /sequence/random/seed:590523467 969s # slow test /sequence/random/seed:590523467 executed in 0.74 secs 969s ok 14 /sequence/random/seed:3583571454 969s # slow test /sequence/random/seed:3583571454 executed in 0.76 secs 970s ok 15 /sequence/random/seed:579241222 970s # slow test /sequence/random/seed:579241222 executed in 0.75 secs 971s ok 16 /sequence/random/seed:1296219249 971s # slow test /sequence/random/seed:1296219249 executed in 0.76 secs 971s # End of random tests 971s # End of sequence tests 971s ok - glib/sequence.test 971s # Running test: glib/bindinggroup.test 971s TAP version 14 971s # random seed: R02Sd373bcdc60fd500dfe299599b2aa8aa0 971s 1..11 971s # Start of GObject tests 971s # Start of BindingGroup tests 971s ok 1 /GObject/BindingGroup/invalid 971s ok 2 /GObject/BindingGroup/default 971s ok 3 /GObject/BindingGroup/bidirectional 971s ok 4 /GObject/BindingGroup/transform 971s ok 5 /GObject/BindingGroup/transform-closures 971s ok - glib/bindinggroup.test 971s # Running test: glib/gdbus-addresses.test 971s ok 6 /GObject/BindingGroup/same-object 971s ok 7 /GObject/BindingGroup/weak-ref-source 971s ok 8 /GObject/BindingGroup/weak-ref-target 971s ok 9 /GObject/BindingGroup/properties 971s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 971s ok 11 /GObject/BindingGroup/empty-closures 971s # End of BindingGroup tests 971s # End of GObject tests 971s TAP version 14 971s # random seed: R02S0750a4366f448624cf3731a3776a68df 971s 1..9 971s # Start of gdbus tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/empty-address/.dirs/runtime 971s ok 1 /gdbus/empty-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unsupported-address/.dirs/runtime 971s ok 2 /gdbus/unsupported-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/address-parsing/.dirs/runtime 971s ok 3 /gdbus/address-parsing 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/unix-address/.dirs/runtime 971s ok 4 /gdbus/unix-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/state 971s ok - glib/gdbus-addresses.test 971s # Running test: glib/unicode-encoding.test 971s ok - glib/unicode-encoding.test 971s # Running test: glib/rcbox.test 971s ok - glib/rcbox.test 971s # Running test: glib/include.test 971s ok - glib/include.test 971s # Running test: glib/sandbox.test 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/nonce-tcp-address/.dirs/runtime 971s ok 5 /gdbus/nonce-tcp-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/tcp-address/.dirs/runtime 971s ok 6 /gdbus/tcp-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/autolaunch-address/.dirs/runtime 971s ok 7 /gdbus/autolaunch-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/mixed-address/.dirs/runtime 971s ok 8 /gdbus/mixed-address 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_Z2OV52/gdbus/escape-address/.dirs/runtime 971s ok 9 /gdbus/escape-address 971s # End of gdbus tests 971s TAP version 14 971s # random seed: R02S226baf1d21f7f293aa4b73b82f0c9c97 971s 1..1 971s # Start of unicode tests 971s ok 1 /unicode/encoding 971s # End of unicode tests 971s TAP version 14 971s # random seed: R02S8c1249fe88399d6c5c28f3b03a95320f 971s 1..8 971s # Start of rcbox tests 971s ok 1 /rcbox/new 971s # global_point = 0x1fcf5fc488b0 971s ok 2 /rcbox/release-full 971s # global_point_a = 0x1fcf5fc488b0 971s # global_point_b = 0x1fcf5fc48980 971s ok 3 /rcbox/dup 971s ok 4 /rcbox/alignment 971s # End of rcbox tests 971s # Start of atomic-rcbox tests 971s ok 5 /atomic-rcbox/new 971s # global_point = 0x1fcf5fc48980 971s ok 6 /atomic-rcbox/release-full 971s # global_point_a = 0x1fcf5fc48980 971s # global_point_b = 0x1fcf5fc488b0 971s ok 7 /atomic-rcbox/dup 971s ok 8 /atomic-rcbox/alignment 971s # End of atomic-rcbox tests 971s TAP version 14 971s # random seed: R02Sd241cbea32f81ef57934168e8f7c971f 971s 1..1 971s # Start of include tests 971s ok 1 /include/rwlock 971s # End of include tests 971s TAP version 14 971s # random seed: R02S74cdc9c9ee72a634f5df0aeb38d34bcf 971s 1..4 971s # Start of sandbox tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_O2ZT52/sandbox/none/.dirs/runtime 971s ok 1 /sandbox/none 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_O2ZT52/sandbox/snap/.dirs/runtime 971s # Created snap.yaml in /tmp/test_sandbox_O2ZT52/snap/current/meta/snap.yaml 971s ok 2 /sandbox/snap 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_O2ZT52/sandbox/classic-snap/.dirs/runtime 971s # Created snap.yaml in /tmp/test_sandbox_O2ZT52/snap/current/meta/snap.yaml 971s ok 3 /sandbox/classic-snap 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/runtime 971s # Creating .flatpak-info in /tmp/test_sandbox_O2ZT52/sandbox/flatpak/.dirs/runtime/.flatpak-info 971s ok 4 /sandbox/flatpak 971s # End of sandbox tests 971s TAP version 14 971s # random seed: R02Sf74c6bb3806012a6a66262ecd9a55be8 971s 1..45 971s # Start of maincontext tests 971s ok 1 /maincontext/basic 971s ok - glib/sandbox.test 971s # Running test: glib/mainloop.test 971s # Add same-priority sources: 31 971s # Find each source: 8 971s # Remove in random order: 39 971s ok 2 /maincontext/nsources_same_priority 971s # Add different-priority sources: 31 971s # Find each source: 8 971s # Remove in random order: 40 971s ok 3 /maincontext/nsources_different_priority 971s # Add sources from threads: 216 972s # Remove sources from threads: 156 972s ok 4 /maincontext/nsources_threadpool 972s ok 5 /maincontext/source_finalization 972s # /maincontext/idle-once summary: Test g_idle_add_once() works 972s ok 6 /maincontext/idle-once 972s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 972s ok 7 /maincontext/timeout-once 972s # Start of source_finalization_from_source tests 972s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 8 /maincontext/source_finalization_from_source/0 972s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 9 /maincontext/source_finalization_from_source/1 972s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 10 /maincontext/source_finalization_from_source/2 972s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 11 /maincontext/source_finalization_from_source/3 972s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 12 /maincontext/source_finalization_from_source/4 972s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 13 /maincontext/source_finalization_from_source/5 972s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 14 /maincontext/source_finalization_from_source/6 972s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 15 /maincontext/source_finalization_from_source/7 972s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 16 /maincontext/source_finalization_from_source/8 972s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 972s ok 17 /maincontext/source_finalization_from_source/9 972s # End of source_finalization_from_source tests 972s # Start of source_finalization_from_dispatch tests 972s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 972s ok 18 /maincontext/source_finalization_from_dispatch/0 972s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 972s ok 19 /maincontext/source_finalization_from_dispatch/1 972s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 972s ok 20 /maincontext/source_finalization_from_dispatch/2 972s # End of source_finalization_from_dispatch tests 972s # End of maincontext tests 972s # Start of mainloop tests 972s ok 21 /mainloop/basic 972s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 972s ok 23 /mainloop/priorities 972s ok 24 /mainloop/invoke 972s # slow test /mainloop/invoke executed in 0.50 secs 972s # Executing: glib/mainloop.test 973s ok 25 /mainloop/child_sources 973s # slow test /mainloop/child_sources executed in 1.18 secs 976s ok 26 /mainloop/recursive_child_sources 976s # slow test /mainloop/recursive_child_sources executed in 2.18 secs 976s ok 27 /mainloop/recursive_loop_child_sources 976s ok 28 /mainloop/swapping_child_sources 976s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 976s ok 29 /mainloop/blocked_child_sources 977s ok 30 /mainloop/source_time 977s # slow test /mainloop/source_time executed in 1.00 secs 977s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 977s ok 31 /mainloop/overflow 977s ok 32 /mainloop/ready-time 977s # slow test /mainloop/ready-time executed in 0.50 secs 977s ok 33 /mainloop/wakeup 977s ok 34 /mainloop/remove-invalid 977s ok 35 /mainloop/unref-while-pending 977s # Executing: glib/mainloop.test 979s ok 36 /mainloop/unix-fd 979s # slow test /mainloop/unix-fd executed in 1.63 secs 979s ok 37 /mainloop/unix-fd-source 979s ok 38 /mainloop/source-unix-fd-api 979s ok 39 /mainloop/wait 979s ok 40 /mainloop/unix-file-poll 979s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 979s ok 41 /mainloop/unix-fd-priority 979s ok 42 /mainloop/nfds 979s ok 43 /mainloop/steal-fd 979s # Start of ownerless-polling tests 979s ok 44 /mainloop/ownerless-polling/attach-first 979s ok 45 /mainloop/ownerless-polling/pop-first 979s # End of ownerless-polling tests 979s # End of mainloop tests 979s ok - glib/mainloop.test 979s # Running test: glib/dir.test 979s TAP version 14 979s # random seed: R02S79a0ade26baf92d3ce93fb2c277662e5 979s 1..3 979s # Start of dir tests 979s ok 1 /dir/read 979s ok 2 /dir/nonexisting 979s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 979s ok 3 /dir/refcounting 979s # End of dir tests 979s ok - glib/dir.test 979s # Running test: glib/signals-refcount2.test 979s TAP version 14 979s # random seed: R02S57536e1d34217df2bda68f8ee036516b 979s 1..1 979s # Start of gobject tests 979s # Start of refcount tests 979s # init 0x1cf37cc1ddd0 979s # 979s # init 0x1cf37cc1a310 979s # 982s # Executing: glib/signals-refcount2.test 984s # dispose 0x1cf37cc1ddd0! 984s # 984s # dispose 0x1cf37cc1a310! 984s # 984s ok 1 /gobject/refcount/signals 984s # slow test /gobject/refcount/signals executed in 5.00 secs 984s # End of refcount tests 984s # End of gobject tests 984s ok - glib/signals-refcount2.test 984s # Running test: glib/flags.test 984s TAP version 14 984s # random seed: R02Sc401079a4657f188bb23567a168fb724 984s 1..1 984s # Start of gobject tests 984s # Start of flags tests 984s ok 1 /gobject/flags/validate 984s # End of flags tests 984s # End of gobject tests 984s ok - glib/flags.test 984s # Running test: glib/dataset.test 984s TAP version 14 984s # random seed: R02S217fd780bfe3513b37f7b1529cd7b653 984s 1..14 984s # Start of quark tests 984s ok 1 /quark/basic 984s ok 2 /quark/string 984s # End of quark tests 984s # Start of dataset tests 984s ok 3 /dataset/basic 984s ok 4 /dataset/id 984s ok 5 /dataset/full 984s ok 6 /dataset/foreach 984s ok 7 /dataset/destroy 984s # End of dataset tests 984s # Start of datalist tests 984s ok 8 /datalist/basic 984s ok 9 /datalist/id 984s ok 10 /datalist/recursive-clear 984s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 984s ok 11 /datalist/id-remove-multiple 984s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 984s ok 12 /datalist/id-remove-multiple-destroy-order 984s ok 13 /datalist/update-atomic 984s # Start of id-remove-multiple tests 984s ok 14 /datalist/id-remove-multiple/resize 984s # End of id-remove-multiple tests 984s # End of datalist tests 984s TAP version 14 984s # random seed: R02S858dbfff8cc933dcaaea817958fccb10 984s 1..36 984s # Start of gtask tests 984s ok 1 /gtask/basic 984s ok 2 /gtask/error 984s ok 3 /gtask/error-literal 984s ok 4 /gtask/error-literal-from-variable 984s ok 5 /gtask/return-from-same-iteration 984s ok 6 /gtask/return-from-toplevel 984s ok 7 /gtask/return-from-anon-thread 984s ok 8 /gtask/return-from-wrong-thread 984s ok 9 /gtask/no-callback 984s ok 10 /gtask/report-error 984s ok 11 /gtask/priority 984s ok 12 /gtask/name 984s ok 13 /gtask/static-name 984s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 984s ok - glib/dataset.test 984s # Running test: glib/task.test 984s ok 14 /gtask/asynchronous-cancellation 984s ok 15 /gtask/check-cancellable 984s ok 16 /gtask/return-if-cancelled 984s ok 17 /gtask/run-in-thread 984s ok 18 /gtask/run-in-thread-sync 984s ok 19 /gtask/run-in-thread-priority 984s ok 20 /gtask/run-in-thread-nested 985s ok 21 /gtask/run-in-thread-overflow 985s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 985s # GLib-GIO-DEBUG: GTask 0x3be98f1c8d0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 985s # GLib-GIO-DEBUG: GTask 0x3be98f1ca60 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 985s ok 22 /gtask/return-on-cancel 985s # GLib-GIO-DEBUG: GTask 0x3be98eb1fa0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 985s # GLib-GIO-DEBUG: GTask 0x3be98eb1ea0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 985s ok 23 /gtask/return-on-cancel-sync 985s ok 24 /gtask/return-on-cancel-atomic 985s ok 25 /gtask/return-pointer 985s ok 26 /gtask/return-value 985s ok 27 /gtask/return-prefixed-error 985s ok 28 /gtask/object-keepalive 985s ok - glib/task.test 985s # Running test: glib/gi-compile-repository.py.test 985s ok 29 /gtask/legacy-error 985s ok 30 /gtask/finalize-without-return 985s # Start of name tests 985s ok 31 /gtask/name/macro-wrapper 985s # End of name tests 985s # Start of return tests 985s ok 32 /gtask/return/error-first 985s ok 33 /gtask/return/value-first 985s # Start of in-idle tests 985s ok 34 /gtask/return/in-idle/error-first 985s ok 35 /gtask/return/in-idle/value-first 985s # End of in-idle tests 985s # End of return tests 985s # Start of attach-source tests 985s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 985s ok 36 /gtask/attach-source/set-name 985s # End of attach-source tests 985s # End of gtask tests 985s TAP version 13 985s ok 1 __main__.TestGICompileRepository.test_open_failure 985s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 985s # gi-compile-repository: /usr/bin/gi-compile-repository 985s # tmpdir: /tmp/tmpwnt2vwf3 985s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpwnt2vwf3/invalid.typelib'] 985s # Return code: 1 985s # Output: 985s # 985s # Error: 985s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.girâ€: No such file or directory 985s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 985s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 985s # gi-compile-repository: /usr/bin/gi-compile-repository 985s # tmpdir: /tmp/tmpiros33o6 985s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmpiros33o6/GLib-2.typelib'] 985s # Return code: 0 985s # Output: 985s # 985s # Error: 985s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 985s # gi-compile-repository: /usr/bin/gi-compile-repository 985s # tmpdir: /tmp/tmpcg5rh6a5 985s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 985s # Return code: 1 985s # Output: 985s # 985s # Error: 985s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 986s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 986s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 986s # gi-compile-repository: /usr/bin/gi-compile-repository 986s # tmpdir: /tmp/tmp9hwkpe3v 986s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmp9hwkpe3v/GObject-2.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 986s # Return code: 0 986s # Output: 986s # 986s # Error: 986s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 986s # gi-compile-repository: /usr/bin/gi-compile-repository 986s # tmpdir: /tmp/tmptnmt_iai 986s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 986s # Return code: 1 986s # Output: 986s # 986s # Error: 986s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 987s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 987s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 987s # gi-compile-repository: /usr/bin/gi-compile-repository 987s # tmpdir: /tmp/tmp4h3c4syt 987s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp4h3c4syt/Gio-2.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 987s # Return code: 0 987s # Output: 987s # 987s # Error: 987s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 987s # gi-compile-repository: /usr/bin/gi-compile-repository 987s # tmpdir: /tmp/tmphj3jgw0n 987s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 987s # Return code: 1 987s # Output: 987s # 987s # Error: 987s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 987s 1..7 987s ok - glib/gi-compile-repository.py.test 987s # Running test: glib/data-input-stream.test 987s TAP version 14 987s # random seed: R02S43e7a23673108ab15bd8a0966075f154 987s 1..10 987s # Start of data-input-stream tests 987s ok 1 /data-input-stream/basic 987s ok 2 /data-input-stream/read-lines-LF 987s ok 3 /data-input-stream/read-lines-LF-valid-utf8 987s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 987s ok 5 /data-input-stream/read-lines-CR 987s # Executing: glib/data-input-stream.test 987s ok 6 /data-input-stream/read-lines-CR-LF 987s ok 7 /data-input-stream/read-lines-any 987s ok 8 /data-input-stream/read-until 987s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 987s # Test vector 1: {"key": "value"}? and ? 987s ok 9 /data-input-stream/read-upto 988s ok 10 /data-input-stream/read-int 988s # End of data-input-stream tests 988s ok - glib/data-input-stream.test 988s # Running test: glib/gdbus-close-pending.test 988s TAP version 14 988s # random seed: R02S289a8abb7c44d48cb5830cdc9b7eca9e 988s 1..2 988s # Start of gdbus tests 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0YF252/gdbus/close-pending/.dirs/runtime 988s ok 1 /gdbus/close-pending 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0YF252/gdbus/unref-pending/.dirs/runtime 988s ok 2 /gdbus/unref-pending 988s ok - glib/gdbus-close-pending.test 988s # End of gdbus tests 988s # Running test: glib/enums.test 988s TAP version 14 988s # random seed: R02S70f255fa17ab79816b4f5a6f3e56008f 988s 1..4 988s # Start of enum tests 988s ok 1 /enum/basic 988s ok 2 /enum/define-type 988s ok - glib/enums.test 988s # Running test: glib/spawn-singlethread.test 988s ok - glib/spawn-singlethread.test 988s # Running test: glib/assert-msg-test.py.test 988s # End of enum tests 988s # Start of flags tests 988s ok 3 /flags/basic 988s ok 4 /flags/define-type 988s # End of flags tests 988s TAP version 14 988s # random seed: R02Se76ba25f484ac2fa754e4b0adc8c4cc4 988s 1..9 988s # Start of gthread tests 988s ok 1 /gthread/spawn-single-sync 988s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 988s ok 2 /gthread/spawn-stderr-socket 988s ok 3 /gthread/spawn-single-async 988s # thread 1 988s # thread 1 988s ok 4 /gthread/spawn-single-async-with-fds 988s ok 5 /gthread/spawn-async-with-invalid-fds 988s ok 6 /gthread/spawn-script 988s ok 7 /gthread/spawn-posix-spawn 988s # Start of spawn tests 988s ok 8 /gthread/spawn/nonexistent 988s # FD map: 988s # • 5 → 15 988s # • 6 → 16 988s # • 7 → 17 988s # • 8 → 18 988s # • 9 → 19 988s # • 10 → 20 988s # • 11 → 21 988s # • 12 → 22 988s # • 13 → 23 988s # • 3 → 13 988s ok 9 /gthread/spawn/fd-assignment-clash 988s # End of spawn tests 988s # End of gthread tests 988s TAP version 13 988s ok 1 __main__.TestAssertMessage.test_gassert 988s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 988s # tmpdir: /tmp/tmpi4gkubxv 988s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 988s # Return code: -6 988s # Output: 988s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 988s # Error: 988s # ** 988s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 988s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 988s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 988s # tmpdir: /tmp/tmpvfqzlezc 988s 1..2 988s ok - glib/assert-msg-test.py.test 988s # Running test: glib/bitlock.test 988s TAP version 14 988s # random seed: R02S45d14eca277d670c7e654446b60bcbae 988s 1..1 988s # Start of bitlock tests 988s # Start of performance tests 988s # max perf: iterations per second 988s ok 1 /bitlock/performance/uncontended 988s # End of performance tests 988s # End of bitlock tests 988s ok - glib/bitlock.test 988s # Running test: glib/gdbus-test-codegen.test 988s TAP version 14 988s # random seed: R02S5d646926242e977be69b28c4e0291626 988s 1..8 988s # Start of gdbus tests 988s # Start of codegen tests 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/annotations/.dirs/runtime 988s ok 1 /gdbus/codegen/annotations 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/interface_stability/.dirs/runtime 988s ok 2 /gdbus/codegen/interface_stability 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/object-manager/.dirs/runtime 988s ok 3 /gdbus/codegen/object-manager 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/property-naming/.dirs/runtime 988s ok 4 /gdbus/codegen/property-naming 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/autocleanups/.dirs/runtime 988s ok 5 /gdbus/codegen/autocleanups 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/deprecations/.dirs/runtime 988s ok 6 /gdbus/codegen/deprecations 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/standalone-interface-info/.dirs/runtime 988s ok 7 /gdbus/codegen/standalone-interface-info 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_XOE852/gdbus/codegen/unix-fd-list/.dirs/runtime 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 988s ok 8 /gdbus/codegen/unix-fd-list 988s # End of codegen tests 988s # End of gdbus tests 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 - glib/gdbus-test-codegen.test 988s # Running test: glib/utils-c-17.test 988s TAP version 14 988s # random seed: R02S51c452b11bbe68360a053e5252d2fa06 988s 1..41 988s # Start of utils tests 988s ok 1 /utils/language-names 988s ok 2 /utils/locale-variants 988s ok 3 /utils/version 988s ok 4 /utils/appname 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 988s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 988s ok 5 /utils/prgname-thread-safety 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 988s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 988s ok - glib/utils-c-17.test 988s ok 6 /utils/tmpdir 988s ok 7 /utils/basic_bits 988s ok 8 /utils/bits 988s ok 9 /utils/swap 988s ok 10 /utils/find-program 988s ok 11 /utils/find-program-for-path 988s ok 12 /utils/debug 988s ok 13 /utils/codeset 988s ok 14 /utils/codeset2 988s ok 15 /utils/console-charset 988s ok 16 /utils/gettext 988s ok 17 /utils/username 988s ok 18 /utils/realname 988s ok 19 /utils/hostname 988s ok 20 /utils/xdgdirs 988s ok 21 /utils/specialdir 988s # NAME: Ubuntu 988s ok 22 /utils/os-info 988s ok 23 /utils/clear-pointer 988s ok 24 /utils/clear-pointer-cast 988s ok 25 /utils/take-pointer 988s ok 26 /utils/clear-source 988s ok 27 /utils/misc-mem 988s # /utils/aligned-mem summary: Aligned memory allocator 988s # Alignment must not be zero 988s # Alignment must be a power of two 988s # Alignment must be a multiple of sizeof(void*) 988s ok 28 /utils/aligned-mem 988s # /utils/free-sized summary: Check that g_free_sized() works 988s ok 29 /utils/free-sized 988s ok 30 /utils/nullify 988s ok 31 /utils/atexit 988s ok 32 /utils/check-setuid 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 988s ok 33 /utils/int-limits 988s ok 34 /utils/clear-list 988s ok 35 /utils/clear-slist 988s ok 36 /utils/steal-handle-id 988s # Start of specialdir tests 988s ok 37 /utils/specialdir/desktop 988s # End of specialdir tests 988s # Start of clear-pointer tests 988s ok 38 /utils/clear-pointer/side-effects 988s # End of clear-pointer tests 988s # Start of aligned-mem tests 988s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 988s ok 39 /utils/aligned-mem/alignment 988s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 988s ok 40 /utils/aligned-mem/zeroed 988s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 988s ok 41 /utils/aligned-mem/free-sized 988s # Start of subprocess tests 988s # End of subprocess tests 988s # End of aligned-mem tests 988s # End of utils tests 988s # Running test: glib/option-context.test 988s TAP version 14 988s # random seed: R02S1f1290a678afa10f24f12fdd92586851 988s 1..58 988s # Start of option tests 988s ok 1 /option/basic 988s ok 2 /option/translate 988s ok 3 /option/strict-posix 988s # Start of help tests 988s ok 4 /option/help/options 988s ok 5 /option/help/no-options 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 988s ok 6 /option/help/no-help-options 988s # Usage: 988s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 988s # 988s # Summary 988s # 988s # Help Options: 988s # -h, --help Show help options 988s # 988s # Application Options: 988s # -t, --test=Argument to use in test (deprecated) Test tests 988s # --test2 Tests also 988s # 988s # Description 988s # 988s ok 7 /option/help/deprecated 988s # End of help tests 988s # Start of group tests 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 988s ok 8 /option/group/captions 988s ok 9 /option/group/main 988s ok 10 /option/group/error-hook 988s ok 11 /option/group/parse 988s # Start of captions tests 988s # Start of subprocess tests 988s # End of subprocess tests 988s # End of captions tests 988s # End of group tests 988s # Start of restoration tests 988s ok 12 /option/restoration/int 988s ok 13 /option/restoration/string 988s ok 14 /option/restoration/boolean 988s # End of restoration tests 988s # Start of arg tests 988s ok 15 /option/arg/reverse-string 988s ok 16 /option/arg/optional-int 988s # Start of repetition tests 988s ok 17 /option/arg/repetition/int 988s ok 18 /option/arg/repetition/string 988s ok 19 /option/arg/repetition/filename 988s ok 20 /option/arg/repetition/double 988s ok 21 /option/arg/repetition/locale 988s ok 22 /option/arg/repetition/int64 988s # End of repetition tests 988s # Start of array tests 988s ok 23 /option/arg/array/string 988s # End of array tests 988s # Start of callback tests 988s ok 24 /option/arg/callback/string 988s ok 25 /option/arg/callback/count 988s ok 26 /option/arg/callback/optional1 988s ok 27 /option/arg/callback/optional2 988s ok 28 /option/arg/callback/optional3 988s ok 29 /option/arg/callback/optional4 988s ok 30 /option/arg/callback/optional5 988s ok 31 /option/arg/callback/optional6 988s ok 32 /option/arg/callback/optional7 988s ok 33 /option/arg/callback/optional8 988s # End of callback tests 988s # Start of remaining tests 988s ok 34 /option/arg/remaining/callback 988s ok 35 /option/arg/remaining/callback-false 988s ok 36 /option/arg/remaining/non-option 988s ok 37 /option/arg/remaining/separator 988s ok 38 /option/arg/remaining/array 988s # End of remaining tests 988s # Start of ignore tests 988s ok 39 /option/arg/ignore/long 988s ok 40 /option/arg/ignore/short 988s ok 41 /option/arg/ignore/arg 988s # End of ignore tests 988s # Start of rest tests 988s ok 42 /option/arg/rest/non-option 988s ok 43 /option/arg/rest/separator1 988s ok 44 /option/arg/rest/separator2 988s ok 45 /option/arg/rest/separator3 988s ok 46 /option/arg/rest/separator4 988s ok 47 /option/arg/rest/separator5 988s # End of rest tests 988s # End of arg tests 988s # Start of context tests 988s ok 48 /option/context/add 988s ok 49 /option/context/empty2 988s ok 50 /option/context/empty3 988s # End of context tests 988s # Start of bug tests 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 988s ok 51 /option/bug/unknown-short 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 988s ok 52 /option/bug/lonely-dash 988s ok 53 /option/bug/triple-dash 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 988s ok 54 /option/bug/missing-arg 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 988s ok 55 /option/bug/dash-arg 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 988s ok 56 /option/bug/short-remaining 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 988s ok 57 /option/bug/double-free 988s ok 58 /option/bug/double-zero 988s # End of bug tests 988s # End of option tests 988s ok - glib/option-context.test 988s # Running test: glib/dynamictests.test 988s TAP version 14 988s # random seed: R02S4f1929e8313e1f5e25fc3445bdfcb698 988s 1..2 988s # Start of GObject tests 989s ok 1 /GObject/threaded-dynamic-ref-unref-init 989s ok 2 /GObject/dynamic-interface-properties 989s # End of GObject tests 989s ok - glib/dynamictests.test 989s # Running test: glib/cancellable.test 989s TAP version 14 989s # random seed: R02Se829e5427294f20b5ddbabe2e764de1e 989s 1..18 989s # Start of cancellable tests 989s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 989s ok 2 /cancellable/null 989s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 989s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 989s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 989s ok 4 /cancellable/connect-to-disposing-callback 989s ok 5 /cancellable/connect-cancelled-data-is-destroyed 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 1 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 0 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 1 989s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 989s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 989s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 989s ok 7 /cancellable/connect-cancelled-to-disposing-callback 989s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 1 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 0 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 1 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 0 989s # Toggle reference callback for GCancellable (0x15896efc4cd0), last: 1 989s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 989s # /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 989s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 989s # /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 989s ok 11 /cancellable/resets-on-cancel-callback-hangs 989s ok 12 /cancellable/poll-fd 989s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 989s ok 13 /cancellable/poll-fd-cancelled 989s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 989s ok 14 /cancellable/poll-fd-cancelled-threaded 989s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 989s ok 15 /cancellable/cancel-reset-races 989s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 989s ok 16 /cancellable/cancel-reset-connect-races 989s # End of cancellable tests 989s # Start of cancellable-source tests 989s # /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) 989s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 990s ok - glib/cancellable.test 990s ok 17 /cancellable-source/threaded-dispose 990s # slow test /cancellable-source/threaded-dispose executed in 0.91 secs 990s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 990s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 990s ok 18 /cancellable-source/can-be-fired-multiple-times 990s # End of cancellable-source tests 990s # Running test: glib/gdbus-subscribe.test 990s TAP version 14 990s # random seed: R02S29007491453d4d61448e68fec25e1602 990s 1..24 990s # Start of gdbus tests 990s # Start of subscribe tests 990s # Start of conn tests 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/simple/.dirs/runtime 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 990s # Step 0: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 1 /gdbus/subscribe/conn/simple 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 990s # Step 0: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: service 2 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: service 2 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 1 990s # Signal received from service 2 :1.2 990s # Signal received from service 2 :1.2 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Signal received from service 2 :1.2 990s # Signal received from service 2 :1.2 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/match_twice/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: (any) 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: (any) 990s # Path: (any) 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 3: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 4: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 3 /gdbus/subscribe/conn/match_twice 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 990s # Step 0: adding subscription 990s # Sender: :0.this.had.better.not.exist 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /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 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: org.gtk.Test.OwnedLater 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 3: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 5: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 6: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Step 7: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 5 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 990s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 990s # Step 0: adding subscription 990s # Sender: org.freedesktop.DBus 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # String argument 0: would I lie to you? 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Waiting for signal to reach message bus 990s # Step 3: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Signal received from message bus org.freedesktop.DBus 990s # Signal received from (unused) org.freedesktop.DBus via connection 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Immediately unsubscribing 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 990s # End of conn tests 990s # Start of proxy tests 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/simple/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 990s # Step 0: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 9 /gdbus/subscribe/proxy/simple 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 990s # Step 0: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: service 2 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: service 2 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/match_twice/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: (any) 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: (any) 990s # Path: (any) 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 3: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 4: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 11 /gdbus/subscribe/proxy/match_twice 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 990s # Step 0: adding subscription 990s # Sender: :0.this.had.better.not.exist 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /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 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: org.gtk.Test.OwnedLater 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 3: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 5: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 6: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Step 7: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 5 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 990s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 990s # Step 0: adding subscription 990s # Sender: org.freedesktop.DBus 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # String argument 0: would I lie to you? 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Waiting for signal to reach message bus 990s # Step 3: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Signal received from message bus org.freedesktop.DBus 990s # Signal received from (unused) org.freedesktop.DBus via proxy 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 990s # End of proxy tests 990s # Start of parallel tests 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/simple/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 990s # Step 0: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 17 /gdbus/subscribe/parallel/simple 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 990s # Step 0: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: service 2 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: service 2 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 1 990s # Signal received from service 2 :1.2 990s # Signal received from service 2 :1.2 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Signal received from service 2 :1.2 990s # Signal received from service 2 :1.2 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/match_twice/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: adding subscription 990s # Sender: (any) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: (any) 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: (any) 990s # Path: (any) 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Cannot subscribe via proxy: no bus name 990s # Waiting for AddMatch to be processed 990s # Step 3: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 4: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 4 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 990s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 19 /gdbus/subscribe/parallel/match_twice 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 990s # Step 0: adding subscription 990s # Sender: service :1.1 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 3: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 3 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 990s # Step 0: adding subscription 990s # Sender: :0.this.had.better.not.exist 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /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 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 2: adding subscription 990s # Sender: org.gtk.Test.OwnedLater 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 3: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 4: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 5: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Step 6: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Step 7: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 5 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 5 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via connection 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 7 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 990s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 990s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 990s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 990s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 990s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 990s # Step 0: adding subscription 990s # Sender: org.freedesktop.DBus 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 1: emitting signal 990s # Sender: attacker 990s # Destination: (broadcast) 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # String argument 0: would I lie to you? 990s # Waiting for signal to reach message bus 990s # Step 2: emitting signal 990s # Sender: attacker 990s # Destination: subscriber :1.0 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Waiting for signal to reach message bus 990s # Step 3: claiming bus name 990s # Name: org.gtk.Test.OwnedLater 990s # Owner: service 990s # Signal received from message bus org.freedesktop.DBus 990s # Signal received from (unused) org.freedesktop.DBus via connection 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Signal received from message bus org.freedesktop.DBus 990s # Signal received from (unused) org.freedesktop.DBus via proxy 990s # Path: /org/freedesktop/DBus 990s # Interface: org.freedesktop.DBus 990s # Member: NameOwnerChanged 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 990s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 990s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_XTBY52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 990s # subscriber is :1.0 990s # service is :1.1 990s # service 2 is :1.2 990s # attacker is :1.3 990s # Waiting for AddMatch to be processed 990s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 990s # Step 0: claiming bus name 990s # Name: org.gtk.Test.AlreadyOwned 990s # Owner: service 990s # Step 1: adding subscription 990s # Sender: org.gtk.Test.AlreadyOwned 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: (any) 990s # String argument 0: (any) 990s # Flags: 0 990s # Subscribing via connection 990s # Immediately unsubscribing 990s ok - glib/gdbus-subscribe.test 990s # Subscribing via proxy 990s # Waiting for AddMatch to be processed 990s # Step 2: emitting signal 990s # Sender: service 990s # Destination: (broadcast) 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Waiting for signal to reach message bus 990s # Signal received from service :1.1 990s # Signal received from service :1.1 via proxy 990s # Path: /org/gtk/GDBus/ExampleInterface 990s # Interface: org.gtk.GDBus.ExampleInterface 990s # Member: Foo 990s # Argument 0: (not a string) 990s # Sent in step: 2 990s # Received Finished signal from subscriber :1.0 990s # Received Finished signal from service :1.1 990s # Received Finished signal from service 2 :1.2 990s # Received Finished signal from attacker :1.3 990s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 990s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 990s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 990s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 990s # End of parallel tests 990s # End of subscribe tests 990s # End of gdbus tests 990s # Running test: glib/macros-c-11.test 990s TAP version 14 990s # random seed: R02Sfb99a9b892a9315deb2acf4c972ea1ce 990s 1..4 990s # Start of C tests 990s ok 1 /C/standard-11 990s # End of C tests 990s # Start of alignof tests 990s ok 2 /alignof/fallback 990s # End of alignof tests 990s # Start of assert tests 990s ok 3 /assert/static 990s # End of assert tests 990s # Start of struct tests 990s ok 4 /struct/sizeof_member 990s # End of struct tests 990s ok - glib/macros-c-11.test 990s # Running test: glib/readwrite.test 990s TAP version 14 990s # random seed: R02Sc02e6fbb2e76485f8a8a92a71801e3be 990s 1..3 990s # Start of readwrite tests 990s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 990s ok 1 /readwrite/test_g_file_open_readwrite 990s ok 2 /readwrite/test_g_file_create_readwrite 990s ok - glib/readwrite.test 990s ok 3 /readwrite/test_g_file_replace_readwrite 990s # End of readwrite tests 990s # Running test: glib/gdbus-test-codegen-old.test 990s TAP version 14 990s # random seed: R02S6da107e4916dd4c188b95a4d8bba31b1 990s 1..8 990s # Start of gdbus tests 990s # Start of codegen tests 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/annotations/.dirs/runtime 990s ok 1 /gdbus/codegen/annotations 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/interface_stability/.dirs/runtime 990s ok 2 /gdbus/codegen/interface_stability 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/object-manager/.dirs/runtime 990s ok 3 /gdbus/codegen/object-manager 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/property-naming/.dirs/runtime 990s ok 4 /gdbus/codegen/property-naming 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/autocleanups/.dirs/runtime 990s ok 5 /gdbus/codegen/autocleanups 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/deprecations/.dirs/runtime 990s ok 6 /gdbus/codegen/deprecations 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/standalone-interface-info/.dirs/runtime 990s ok 7 /gdbus/codegen/standalone-interface-info 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OLUS52/gdbus/codegen/unix-fd-list/.dirs/runtime 990s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 990s ok 8 /gdbus/codegen/unix-fd-list 990s # End of codegen tests 990s # End of gdbus tests 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 990s ok - glib/gdbus-test-codegen-old.test 990s # Running test: glib/gdbus-peer.test 990s TAP version 14 990s # random seed: R02S4ee6bc5b7bf1a67dab3f6f7624a0a570 990s 1..12 990s # Start of gdbus tests 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/.dirs/runtime 990s # Testing with unix:dir address 990s # Testing with unix:tmpdir address 990s # Testing with unix:path address 990s ok 1 /gdbus/peer-to-peer 990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/home 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/cache 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/system-config2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/config 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/system-data2 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/data 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/state 990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/delayed-message-processing/.dirs/runtime 990s # Testing with unix:dir address 991s ok 2 /gdbus/delayed-message-processing 991s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/nonce-tcp/.dirs/runtime 991s ok 3 /gdbus/nonce-tcp 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/tcp-anonymous/.dirs/runtime 991s ok 4 /gdbus/tcp-anonymous 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/credentials/.dirs/runtime 991s ok 5 /gdbus/credentials 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/codegen-peer-to-peer/.dirs/runtime 991s # Testing with unix:dir address 991s # Machine ID: 9acd427571b540f48c6abce6b0f7a40e 992s ok 6 /gdbus/codegen-peer-to-peer 992s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 992s # Start of peer-to-peer tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/signals/.dirs/runtime 992s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 992s # Testing with unix:dir address 992s ok 7 /gdbus/peer-to-peer/signals 992s # Start of invalid tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/server/.dirs/runtime 992s ok 8 /gdbus/peer-to-peer/invalid/server 992s # Start of conn tests 992s # Start of stream tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 992s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 992s ok - glib/gdbus-peer.test 992s # Running test: glib/bookmarkfile.test 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 992s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 992s # End of stream tests 992s # Start of addr tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 992s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_A1CR52/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 992s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 992s # End of addr tests 992s # End of conn tests 992s # End of invalid tests 992s # End of peer-to-peer tests 992s # End of gdbus tests 992s TAP version 14 992s # random seed: R02S9539aa9b9384494e5128d73ea4b422a0 992s 1..96 992s # Start of bookmarks tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/load-from-data-dirs/.dirs/runtime 992s ok 1 /bookmarks/load-from-data-dirs 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/to-file/.dirs/runtime 992s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_92KW52/bookmarkfile-test-OEMW52.xbel 992s # Roundtrip from a valid bookmark file 992s ok 2 /bookmarks/to-file 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/move-item/.dirs/runtime 992s ok 3 /bookmarks/move-item 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/corner-cases/.dirs/runtime 992s ok 4 /bookmarks/corner-cases 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/misc/.dirs/runtime 992s ok 5 /bookmarks/misc 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/deprecated/.dirs/runtime 992s ok 6 /bookmarks/deprecated 992s # Start of parse tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-02.xbel/.dirs/runtime 992s ok 7 /bookmarks/parse/fail-02.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-06.xbel/.dirs/runtime 992s ok 8 /bookmarks/parse/fail-06.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-10.xbel/.dirs/runtime 992s ok 9 /bookmarks/parse/fail-10.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-01.xbel/.dirs/runtime 992s ok 10 /bookmarks/parse/fail-01.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-13.xbel/.dirs/runtime 992s ok 11 /bookmarks/parse/fail-13.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-01.xbel/.dirs/runtime 992s ok 12 /bookmarks/parse/valid-01.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-02.xbel/.dirs/runtime 992s ok 13 /bookmarks/parse/valid-02.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-07.xbel/.dirs/runtime 992s ok 14 /bookmarks/parse/fail-07.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-40.xbel/.dirs/runtime 992s ok 15 /bookmarks/parse/fail-40.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-09.xbel/.dirs/runtime 992s ok 16 /bookmarks/parse/fail-09.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-27.xbel/.dirs/runtime 992s ok 17 /bookmarks/parse/fail-27.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-32.xbel/.dirs/runtime 992s ok 18 /bookmarks/parse/fail-32.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-05.xbel/.dirs/runtime 992s ok 19 /bookmarks/parse/fail-05.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-15.xbel/.dirs/runtime 992s ok 20 /bookmarks/parse/fail-15.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-25.xbel/.dirs/runtime 992s ok 21 /bookmarks/parse/fail-25.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-41.xbel/.dirs/runtime 992s ok 22 /bookmarks/parse/fail-41.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-36.xbel/.dirs/runtime 992s ok 23 /bookmarks/parse/fail-36.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-17.xbel/.dirs/runtime 992s ok 24 /bookmarks/parse/fail-17.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-31.xbel/.dirs/runtime 992s ok 25 /bookmarks/parse/fail-31.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-24.xbel/.dirs/runtime 992s ok 26 /bookmarks/parse/fail-24.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-03.xbel/.dirs/runtime 992s ok 27 /bookmarks/parse/fail-03.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-29.xbel/.dirs/runtime 992s ok 28 /bookmarks/parse/fail-29.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-39.xbel/.dirs/runtime 992s ok 29 /bookmarks/parse/fail-39.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-04.xbel/.dirs/runtime 992s ok 30 /bookmarks/parse/fail-04.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-34.xbel/.dirs/runtime 992s ok 31 /bookmarks/parse/fail-34.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-12.xbel/.dirs/runtime 992s ok 32 /bookmarks/parse/fail-12.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/valid-03.xbel/.dirs/runtime 992s ok 33 /bookmarks/parse/valid-03.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-26.xbel/.dirs/runtime 992s ok 34 /bookmarks/parse/fail-26.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-08.xbel/.dirs/runtime 992s ok 35 /bookmarks/parse/fail-08.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-14.xbel/.dirs/runtime 992s ok 36 /bookmarks/parse/fail-14.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-42.xbel/.dirs/runtime 992s ok 37 /bookmarks/parse/fail-42.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-16.xbel/.dirs/runtime 992s ok 38 /bookmarks/parse/fail-16.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-38.xbel/.dirs/runtime 992s ok 39 /bookmarks/parse/fail-38.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-33.xbel/.dirs/runtime 992s ok 40 /bookmarks/parse/fail-33.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-30.xbel/.dirs/runtime 992s ok 41 /bookmarks/parse/fail-30.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-23.xbel/.dirs/runtime 992s ok 42 /bookmarks/parse/fail-23.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-22.xbel/.dirs/runtime 992s ok 43 /bookmarks/parse/fail-22.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-35.xbel/.dirs/runtime 992s ok 44 /bookmarks/parse/fail-35.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-28.xbel/.dirs/runtime 992s ok 45 /bookmarks/parse/fail-28.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-20.xbel/.dirs/runtime 992s ok 46 /bookmarks/parse/fail-20.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-37.xbel/.dirs/runtime 992s ok 47 /bookmarks/parse/fail-37.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-18.xbel/.dirs/runtime 992s ok 48 /bookmarks/parse/fail-18.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-19.xbel/.dirs/runtime 992s ok 49 /bookmarks/parse/fail-19.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-21.xbel/.dirs/runtime 992s ok 50 /bookmarks/parse/fail-21.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/parse/fail-11.xbel/.dirs/runtime 992s ok 51 /bookmarks/parse/fail-11.xbel 992s # End of parse tests 992s # Start of copy tests 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-02.xbel/.dirs/runtime 992s ok 52 /bookmarks/copy/fail-02.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-06.xbel/.dirs/runtime 992s ok 53 /bookmarks/copy/fail-06.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-10.xbel/.dirs/runtime 992s ok 54 /bookmarks/copy/fail-10.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-01.xbel/.dirs/runtime 992s ok 55 /bookmarks/copy/fail-01.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-13.xbel/.dirs/runtime 992s ok 56 /bookmarks/copy/fail-13.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-01.xbel/.dirs/runtime 992s ok 57 /bookmarks/copy/valid-01.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-02.xbel/.dirs/runtime 992s ok 58 /bookmarks/copy/valid-02.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-07.xbel/.dirs/runtime 992s ok 59 /bookmarks/copy/fail-07.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-40.xbel/.dirs/runtime 992s ok 60 /bookmarks/copy/fail-40.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-09.xbel/.dirs/runtime 992s ok 61 /bookmarks/copy/fail-09.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-27.xbel/.dirs/runtime 992s ok 62 /bookmarks/copy/fail-27.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-32.xbel/.dirs/runtime 992s ok 63 /bookmarks/copy/fail-32.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-05.xbel/.dirs/runtime 992s ok 64 /bookmarks/copy/fail-05.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-15.xbel/.dirs/runtime 992s ok 65 /bookmarks/copy/fail-15.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-25.xbel/.dirs/runtime 992s ok 66 /bookmarks/copy/fail-25.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-41.xbel/.dirs/runtime 992s ok 67 /bookmarks/copy/fail-41.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-36.xbel/.dirs/runtime 992s ok 68 /bookmarks/copy/fail-36.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-17.xbel/.dirs/runtime 992s ok 69 /bookmarks/copy/fail-17.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-31.xbel/.dirs/runtime 992s ok 70 /bookmarks/copy/fail-31.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-24.xbel/.dirs/runtime 992s ok 71 /bookmarks/copy/fail-24.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-03.xbel/.dirs/runtime 992s ok 72 /bookmarks/copy/fail-03.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-29.xbel/.dirs/runtime 992s ok 73 /bookmarks/copy/fail-29.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-39.xbel/.dirs/runtime 992s ok 74 /bookmarks/copy/fail-39.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-04.xbel/.dirs/runtime 992s ok 75 /bookmarks/copy/fail-04.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-34.xbel/.dirs/runtime 992s ok 76 /bookmarks/copy/fail-34.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-12.xbel/.dirs/runtime 992s ok 77 /bookmarks/copy/fail-12.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/valid-03.xbel/.dirs/runtime 992s ok 78 /bookmarks/copy/valid-03.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-26.xbel/.dirs/runtime 992s ok 79 /bookmarks/copy/fail-26.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-08.xbel/.dirs/runtime 992s ok 80 /bookmarks/copy/fail-08.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-14.xbel/.dirs/runtime 992s ok 81 /bookmarks/copy/fail-14.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-42.xbel/.dirs/runtime 992s ok 82 /bookmarks/copy/fail-42.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-16.xbel/.dirs/runtime 992s ok 83 /bookmarks/copy/fail-16.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-38.xbel/.dirs/runtime 992s ok 84 /bookmarks/copy/fail-38.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-33.xbel/.dirs/runtime 992s ok 85 /bookmarks/copy/fail-33.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-30.xbel/.dirs/runtime 992s ok 86 /bookmarks/copy/fail-30.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-23.xbel/.dirs/runtime 992s ok 87 /bookmarks/copy/fail-23.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-22.xbel/.dirs/runtime 992s ok 88 /bookmarks/copy/fail-22.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-35.xbel/.dirs/runtime 992s ok 89 /bookmarks/copy/fail-35.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-28.xbel/.dirs/runtime 992s ok 90 /bookmarks/copy/fail-28.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-20.xbel/.dirs/runtime 992s ok 91 /bookmarks/copy/fail-20.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-37.xbel/.dirs/runtime 992s ok 92 /bookmarks/copy/fail-37.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/system-data2 992s ok - glib/bookmarkfile.test 992s # Running test: glib/checksum.test 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-18.xbel/.dirs/runtime 992s ok 93 /bookmarks/copy/fail-18.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-19.xbel/.dirs/runtime 992s ok 94 /bookmarks/copy/fail-19.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-21.xbel/.dirs/runtime 992s ok 95 /bookmarks/copy/fail-21.xbel 992s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/home 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/cache 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/system-config2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/config 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/system-data2 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/data 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/state 992s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_92KW52/bookmarks/copy/fail-11.xbel/.dirs/runtime 992s ok 96 /bookmarks/copy/fail-11.xbel 992s # End of copy tests 992s # End of bookmarks tests 992s TAP version 14 992s # random seed: R02S43176630198a908ff55b528360bdd450 992s 1..1851 992s # Start of checksum tests 992s ok 1 /checksum/unsupported 992s # Start of MD5 tests 992s ok 2 /checksum/MD5/0 992s ok 3 /checksum/MD5/1 992s ok 4 /checksum/MD5/2 992s ok 5 /checksum/MD5/3 992s ok 6 /checksum/MD5/4 992s ok 7 /checksum/MD5/5 992s ok 8 /checksum/MD5/6 992s ok 9 /checksum/MD5/7 992s ok 10 /checksum/MD5/8 992s ok 11 /checksum/MD5/9 992s ok 12 /checksum/MD5/10 992s ok 13 /checksum/MD5/11 992s ok 14 /checksum/MD5/12 992s ok 15 /checksum/MD5/13 992s ok 16 /checksum/MD5/14 992s ok 17 /checksum/MD5/15 992s ok 18 /checksum/MD5/16 992s ok 19 /checksum/MD5/17 992s ok 20 /checksum/MD5/18 992s ok 21 /checksum/MD5/19 992s ok 22 /checksum/MD5/20 992s ok 23 /checksum/MD5/21 992s ok 24 /checksum/MD5/22 992s ok 25 /checksum/MD5/23 992s ok 26 /checksum/MD5/24 992s ok 27 /checksum/MD5/25 992s ok 28 /checksum/MD5/26 992s ok 29 /checksum/MD5/27 992s ok 30 /checksum/MD5/28 992s ok 31 /checksum/MD5/29 992s ok 32 /checksum/MD5/30 992s ok 33 /checksum/MD5/31 992s ok 34 /checksum/MD5/32 992s ok 35 /checksum/MD5/33 992s ok 36 /checksum/MD5/34 992s ok 37 /checksum/MD5/35 992s ok 38 /checksum/MD5/36 992s ok 39 /checksum/MD5/37 992s ok 40 /checksum/MD5/38 992s ok 41 /checksum/MD5/39 992s ok 42 /checksum/MD5/40 992s ok 43 /checksum/MD5/41 992s ok 44 /checksum/MD5/42 992s ok 45 /checksum/MD5/43 992s ok 46 /checksum/MD5/44 992s ok 47 /checksum/MD5/45 992s ok 48 /checksum/MD5/46 992s ok 49 /checksum/MD5/47 992s ok 50 /checksum/MD5/48 992s ok 51 /checksum/MD5/49 992s ok 52 /checksum/MD5/50 992s ok 53 /checksum/MD5/51 992s ok 54 /checksum/MD5/52 992s ok 55 /checksum/MD5/53 992s ok 56 /checksum/MD5/54 992s ok 57 /checksum/MD5/55 992s ok 58 /checksum/MD5/56 992s ok 59 /checksum/MD5/57 992s ok 60 /checksum/MD5/58 992s ok 61 /checksum/MD5/59 992s ok 62 /checksum/MD5/60 992s ok 63 /checksum/MD5/61 992s ok 64 /checksum/MD5/62 992s ok 65 /checksum/MD5/63 992s ok 66 /checksum/MD5/64 992s ok 67 /checksum/MD5/65 992s ok 68 /checksum/MD5/66 992s ok 69 /checksum/MD5/67 992s ok 70 /checksum/MD5/68 992s ok 71 /checksum/MD5/69 992s ok 72 /checksum/MD5/70 992s ok 73 /checksum/MD5/71 992s ok 74 /checksum/MD5/72 992s ok 75 /checksum/MD5/73 992s ok 76 /checksum/MD5/74 992s ok 77 /checksum/MD5/75 992s ok 78 /checksum/MD5/76 992s ok 79 /checksum/MD5/77 992s ok 80 /checksum/MD5/78 992s ok 81 /checksum/MD5/79 992s ok 82 /checksum/MD5/80 992s ok 83 /checksum/MD5/81 992s ok 84 /checksum/MD5/82 992s ok 85 /checksum/MD5/83 992s ok 86 /checksum/MD5/84 992s ok 87 /checksum/MD5/85 992s ok 88 /checksum/MD5/86 992s ok 89 /checksum/MD5/87 992s ok 90 /checksum/MD5/88 992s ok 91 /checksum/MD5/89 992s ok 92 /checksum/MD5/90 992s ok 93 /checksum/MD5/91 992s ok 94 /checksum/MD5/92 992s ok 95 /checksum/MD5/93 992s ok 96 /checksum/MD5/94 992s ok 97 /checksum/MD5/95 992s ok 98 /checksum/MD5/96 992s ok 99 /checksum/MD5/97 992s ok 100 /checksum/MD5/98 992s ok 101 /checksum/MD5/99 992s ok 102 /checksum/MD5/100 992s ok 103 /checksum/MD5/101 992s ok 104 /checksum/MD5/102 992s ok 105 /checksum/MD5/103 992s ok 106 /checksum/MD5/104 992s ok 107 /checksum/MD5/105 992s ok 108 /checksum/MD5/106 992s ok 109 /checksum/MD5/107 992s ok 110 /checksum/MD5/108 992s ok 111 /checksum/MD5/109 992s ok 112 /checksum/MD5/110 992s ok 113 /checksum/MD5/111 992s ok 114 /checksum/MD5/112 992s ok 115 /checksum/MD5/113 992s ok 116 /checksum/MD5/114 992s ok 117 /checksum/MD5/115 992s ok 118 /checksum/MD5/116 992s ok 119 /checksum/MD5/117 992s ok 120 /checksum/MD5/118 992s ok 121 /checksum/MD5/119 992s ok 122 /checksum/MD5/120 992s ok 123 /checksum/MD5/121 992s ok 124 /checksum/MD5/122 992s ok 125 /checksum/MD5/123 992s ok 126 /checksum/MD5/124 992s ok 127 /checksum/MD5/125 992s ok 128 /checksum/MD5/126 992s ok 129 /checksum/MD5/127 992s ok 130 /checksum/MD5/128 992s ok 131 /checksum/MD5/129 992s ok 132 /checksum/MD5/130 992s ok 133 /checksum/MD5/131 992s ok 134 /checksum/MD5/132 992s ok 135 /checksum/MD5/133 992s ok 136 /checksum/MD5/134 992s ok 137 /checksum/MD5/135 992s ok 138 /checksum/MD5/136 992s ok 139 /checksum/MD5/137 992s ok 140 /checksum/MD5/138 992s ok 141 /checksum/MD5/139 992s ok 142 /checksum/MD5/140 992s ok 143 /checksum/MD5/141 992s ok 144 /checksum/MD5/142 992s ok 145 /checksum/MD5/143 992s ok 146 /checksum/MD5/144 992s ok 147 /checksum/MD5/145 992s ok 148 /checksum/MD5/146 992s ok 149 /checksum/MD5/147 992s ok 150 /checksum/MD5/148 992s ok 151 /checksum/MD5/149 992s ok 152 /checksum/MD5/150 992s ok 153 /checksum/MD5/151 992s ok 154 /checksum/MD5/152 992s ok 155 /checksum/MD5/153 992s ok 156 /checksum/MD5/154 992s ok 157 /checksum/MD5/155 992s ok 158 /checksum/MD5/156 992s ok 159 /checksum/MD5/157 992s ok 160 /checksum/MD5/158 992s ok 161 /checksum/MD5/159 992s ok 162 /checksum/MD5/160 992s ok 163 /checksum/MD5/161 992s ok 164 /checksum/MD5/162 992s ok 165 /checksum/MD5/163 992s ok 166 /checksum/MD5/164 992s ok 167 /checksum/MD5/165 992s ok 168 /checksum/MD5/166 992s ok 169 /checksum/MD5/167 992s ok 170 /checksum/MD5/168 992s ok 171 /checksum/MD5/169 992s ok 172 /checksum/MD5/170 992s ok 173 /checksum/MD5/171 992s ok 174 /checksum/MD5/172 992s ok 175 /checksum/MD5/173 992s ok 176 /checksum/MD5/174 992s ok 177 /checksum/MD5/175 992s ok 178 /checksum/MD5/176 992s ok 179 /checksum/MD5/177 992s ok 180 /checksum/MD5/178 992s ok 181 /checksum/MD5/179 992s ok 182 /checksum/MD5/180 992s ok 183 /checksum/MD5/181 992s ok 184 /checksum/MD5/182 992s ok 185 /checksum/MD5/183 992s ok 186 /checksum/MD5/string 992s ok 187 /checksum/MD5/bytes 992s # Start of reset tests 992s ok 188 /checksum/MD5/reset/0 992s ok 189 /checksum/MD5/reset/1 992s ok 190 /checksum/MD5/reset/2 992s ok 191 /checksum/MD5/reset/3 992s ok 192 /checksum/MD5/reset/4 992s ok 193 /checksum/MD5/reset/5 992s ok 194 /checksum/MD5/reset/6 992s ok 195 /checksum/MD5/reset/7 992s ok 196 /checksum/MD5/reset/8 992s ok 197 /checksum/MD5/reset/9 992s ok 198 /checksum/MD5/reset/10 992s ok 199 /checksum/MD5/reset/11 992s ok 200 /checksum/MD5/reset/12 992s ok 201 /checksum/MD5/reset/13 992s ok 202 /checksum/MD5/reset/14 992s ok 203 /checksum/MD5/reset/15 992s ok 204 /checksum/MD5/reset/16 992s ok 205 /checksum/MD5/reset/17 992s ok 206 /checksum/MD5/reset/18 992s ok 207 /checksum/MD5/reset/19 992s ok 208 /checksum/MD5/reset/20 992s ok 209 /checksum/MD5/reset/21 992s ok 210 /checksum/MD5/reset/22 992s ok 211 /checksum/MD5/reset/23 992s ok 212 /checksum/MD5/reset/24 992s ok 213 /checksum/MD5/reset/25 992s ok 214 /checksum/MD5/reset/26 992s ok 215 /checksum/MD5/reset/27 992s ok 216 /checksum/MD5/reset/28 992s ok 217 /checksum/MD5/reset/29 992s ok 218 /checksum/MD5/reset/30 992s ok 219 /checksum/MD5/reset/31 992s ok 220 /checksum/MD5/reset/32 992s ok 221 /checksum/MD5/reset/33 992s ok 222 /checksum/MD5/reset/34 992s ok 223 /checksum/MD5/reset/35 992s ok 224 /checksum/MD5/reset/36 992s ok 225 /checksum/MD5/reset/37 992s ok 226 /checksum/MD5/reset/38 992s ok 227 /checksum/MD5/reset/39 992s ok 228 /checksum/MD5/reset/40 992s ok 229 /checksum/MD5/reset/41 992s ok 230 /checksum/MD5/reset/42 992s ok 231 /checksum/MD5/reset/43 992s ok 232 /checksum/MD5/reset/44 992s ok 233 /checksum/MD5/reset/45 992s ok 234 /checksum/MD5/reset/46 992s ok 235 /checksum/MD5/reset/47 992s ok 236 /checksum/MD5/reset/48 992s ok 237 /checksum/MD5/reset/49 992s ok 238 /checksum/MD5/reset/50 992s ok 239 /checksum/MD5/reset/51 992s ok 240 /checksum/MD5/reset/52 992s ok 241 /checksum/MD5/reset/53 992s ok 242 /checksum/MD5/reset/54 992s ok 243 /checksum/MD5/reset/55 992s ok 244 /checksum/MD5/reset/56 992s ok 245 /checksum/MD5/reset/57 992s ok 246 /checksum/MD5/reset/58 992s ok 247 /checksum/MD5/reset/59 992s ok 248 /checksum/MD5/reset/60 992s ok 249 /checksum/MD5/reset/61 992s ok 250 /checksum/MD5/reset/62 992s ok 251 /checksum/MD5/reset/63 992s ok 252 /checksum/MD5/reset/64 992s ok 253 /checksum/MD5/reset/65 992s ok 254 /checksum/MD5/reset/66 992s ok 255 /checksum/MD5/reset/67 992s ok 256 /checksum/MD5/reset/68 992s ok 257 /checksum/MD5/reset/69 992s ok 258 /checksum/MD5/reset/70 992s ok 259 /checksum/MD5/reset/71 992s ok 260 /checksum/MD5/reset/72 992s ok 261 /checksum/MD5/reset/73 992s ok 262 /checksum/MD5/reset/74 992s ok 263 /checksum/MD5/reset/75 992s ok 264 /checksum/MD5/reset/76 992s ok 265 /checksum/MD5/reset/77 992s ok 266 /checksum/MD5/reset/78 992s ok 267 /checksum/MD5/reset/79 992s ok 268 /checksum/MD5/reset/80 992s ok 269 /checksum/MD5/reset/81 992s ok 270 /checksum/MD5/reset/82 992s ok 271 /checksum/MD5/reset/83 992s ok 272 /checksum/MD5/reset/84 992s ok 273 /checksum/MD5/reset/85 992s ok 274 /checksum/MD5/reset/86 992s ok 275 /checksum/MD5/reset/87 992s ok 276 /checksum/MD5/reset/88 992s ok 277 /checksum/MD5/reset/89 992s ok 278 /checksum/MD5/reset/90 992s ok 279 /checksum/MD5/reset/91 992s ok 280 /checksum/MD5/reset/92 992s ok 281 /checksum/MD5/reset/93 992s ok 282 /checksum/MD5/reset/94 992s ok 283 /checksum/MD5/reset/95 992s ok 284 /checksum/MD5/reset/96 992s ok 285 /checksum/MD5/reset/97 992s ok 286 /checksum/MD5/reset/98 992s ok 287 /checksum/MD5/reset/99 992s ok 288 /checksum/MD5/reset/100 992s ok 289 /checksum/MD5/reset/101 992s ok 290 /checksum/MD5/reset/102 992s ok 291 /checksum/MD5/reset/103 992s ok 292 /checksum/MD5/reset/104 992s ok 293 /checksum/MD5/reset/105 992s ok 294 /checksum/MD5/reset/106 992s ok 295 /checksum/MD5/reset/107 992s ok 296 /checksum/MD5/reset/108 992s ok 297 /checksum/MD5/reset/109 992s ok 298 /checksum/MD5/reset/110 992s ok 299 /checksum/MD5/reset/111 992s ok 300 /checksum/MD5/reset/112 992s ok 301 /checksum/MD5/reset/113 992s ok 302 /checksum/MD5/reset/114 992s ok 303 /checksum/MD5/reset/115 992s ok 304 /checksum/MD5/reset/116 992s ok 305 /checksum/MD5/reset/117 992s ok 306 /checksum/MD5/reset/118 992s ok 307 /checksum/MD5/reset/119 992s ok 308 /checksum/MD5/reset/120 992s ok 309 /checksum/MD5/reset/121 992s ok 310 /checksum/MD5/reset/122 992s ok 311 /checksum/MD5/reset/123 992s ok 312 /checksum/MD5/reset/124 992s ok 313 /checksum/MD5/reset/125 992s ok 314 /checksum/MD5/reset/126 992s ok 315 /checksum/MD5/reset/127 992s ok 316 /checksum/MD5/reset/128 992s ok 317 /checksum/MD5/reset/129 992s ok 318 /checksum/MD5/reset/130 992s ok 319 /checksum/MD5/reset/131 992s ok 320 /checksum/MD5/reset/132 992s ok 321 /checksum/MD5/reset/133 992s ok 322 /checksum/MD5/reset/134 992s ok 323 /checksum/MD5/reset/135 992s ok 324 /checksum/MD5/reset/136 992s ok 325 /checksum/MD5/reset/137 992s ok 326 /checksum/MD5/reset/138 992s ok 327 /checksum/MD5/reset/139 992s ok 328 /checksum/MD5/reset/140 992s ok 329 /checksum/MD5/reset/141 992s ok 330 /checksum/MD5/reset/142 992s ok 331 /checksum/MD5/reset/143 992s ok 332 /checksum/MD5/reset/144 992s ok 333 /checksum/MD5/reset/145 992s ok 334 /checksum/MD5/reset/146 992s ok 335 /checksum/MD5/reset/147 992s ok 336 /checksum/MD5/reset/148 992s ok 337 /checksum/MD5/reset/149 992s ok 338 /checksum/MD5/reset/150 992s ok 339 /checksum/MD5/reset/151 992s ok 340 /checksum/MD5/reset/152 992s ok 341 /checksum/MD5/reset/153 992s ok 342 /checksum/MD5/reset/154 992s ok 343 /checksum/MD5/reset/155 992s ok 344 /checksum/MD5/reset/156 992s ok 345 /checksum/MD5/reset/157 992s ok 346 /checksum/MD5/reset/158 992s ok 347 /checksum/MD5/reset/159 992s ok 348 /checksum/MD5/reset/160 992s ok 349 /checksum/MD5/reset/161 992s ok 350 /checksum/MD5/reset/162 992s ok 351 /checksum/MD5/reset/163 992s ok 352 /checksum/MD5/reset/164 992s ok 353 /checksum/MD5/reset/165 992s ok 354 /checksum/MD5/reset/166 992s ok 355 /checksum/MD5/reset/167 992s ok 356 /checksum/MD5/reset/168 992s ok 357 /checksum/MD5/reset/169 992s ok 358 /checksum/MD5/reset/170 992s ok 359 /checksum/MD5/reset/171 992s ok 360 /checksum/MD5/reset/172 992s ok 361 /checksum/MD5/reset/173 992s ok 362 /checksum/MD5/reset/174 992s ok 363 /checksum/MD5/reset/175 992s ok 364 /checksum/MD5/reset/176 992s ok 365 /checksum/MD5/reset/177 992s ok 366 /checksum/MD5/reset/178 992s ok 367 /checksum/MD5/reset/179 992s ok 368 /checksum/MD5/reset/180 992s ok 369 /checksum/MD5/reset/181 992s ok 370 /checksum/MD5/reset/182 992s ok 371 /checksum/MD5/reset/183 992s # End of reset tests 992s # End of MD5 tests 992s # Start of SHA1 tests 992s ok 372 /checksum/SHA1/0 992s ok 373 /checksum/SHA1/1 992s ok 374 /checksum/SHA1/2 992s ok 375 /checksum/SHA1/3 992s ok 376 /checksum/SHA1/4 992s ok 377 /checksum/SHA1/5 992s ok 378 /checksum/SHA1/6 992s ok 379 /checksum/SHA1/7 992s ok 380 /checksum/SHA1/8 992s ok 381 /checksum/SHA1/9 992s ok 382 /checksum/SHA1/10 992s ok 383 /checksum/SHA1/11 992s ok 384 /checksum/SHA1/12 992s ok 385 /checksum/SHA1/13 992s ok 386 /checksum/SHA1/14 992s ok 387 /checksum/SHA1/15 992s ok 388 /checksum/SHA1/16 992s ok 389 /checksum/SHA1/17 992s ok 390 /checksum/SHA1/18 992s ok 391 /checksum/SHA1/19 992s ok 392 /checksum/SHA1/20 992s ok 393 /checksum/SHA1/21 992s ok 394 /checksum/SHA1/22 992s ok 395 /checksum/SHA1/23 992s ok 396 /checksum/SHA1/24 992s ok 397 /checksum/SHA1/25 992s ok 398 /checksum/SHA1/26 992s ok 399 /checksum/SHA1/27 992s ok 400 /checksum/SHA1/28 992s ok 401 /checksum/SHA1/29 992s ok 402 /checksum/SHA1/30 992s ok 403 /checksum/SHA1/31 992s ok 404 /checksum/SHA1/32 992s ok 405 /checksum/SHA1/33 992s ok 406 /checksum/SHA1/34 992s ok 407 /checksum/SHA1/35 992s ok 408 /checksum/SHA1/36 992s ok 409 /checksum/SHA1/37 992s ok 410 /checksum/SHA1/38 992s ok 411 /checksum/SHA1/39 992s ok 412 /checksum/SHA1/40 992s ok 413 /checksum/SHA1/41 992s ok 414 /checksum/SHA1/42 992s ok 415 /checksum/SHA1/43 992s ok 416 /checksum/SHA1/44 992s ok 417 /checksum/SHA1/45 992s ok 418 /checksum/SHA1/46 992s ok 419 /checksum/SHA1/47 992s ok 420 /checksum/SHA1/48 992s ok 421 /checksum/SHA1/49 992s ok 422 /checksum/SHA1/50 992s ok 423 /checksum/SHA1/51 992s ok 424 /checksum/SHA1/52 992s ok 425 /checksum/SHA1/53 992s ok 426 /checksum/SHA1/54 992s ok 427 /checksum/SHA1/55 992s ok 428 /checksum/SHA1/56 992s ok 429 /checksum/SHA1/57 992s ok 430 /checksum/SHA1/58 992s ok 431 /checksum/SHA1/59 992s ok 432 /checksum/SHA1/60 992s ok 433 /checksum/SHA1/61 992s ok 434 /checksum/SHA1/62 992s ok 435 /checksum/SHA1/63 992s ok 436 /checksum/SHA1/64 992s ok 437 /checksum/SHA1/65 992s ok 438 /checksum/SHA1/66 992s ok 439 /checksum/SHA1/67 992s ok 440 /checksum/SHA1/68 992s ok 441 /checksum/SHA1/69 992s ok 442 /checksum/SHA1/70 992s ok 443 /checksum/SHA1/71 992s ok 444 /checksum/SHA1/72 992s ok 445 /checksum/SHA1/73 992s ok 446 /checksum/SHA1/74 992s ok 447 /checksum/SHA1/75 992s ok 448 /checksum/SHA1/76 992s ok 449 /checksum/SHA1/77 992s ok 450 /checksum/SHA1/78 992s ok 451 /checksum/SHA1/79 992s ok 452 /checksum/SHA1/80 992s ok 453 /checksum/SHA1/81 992s ok 454 /checksum/SHA1/82 992s ok 455 /checksum/SHA1/83 992s ok 456 /checksum/SHA1/84 992s ok 457 /checksum/SHA1/85 992s ok 458 /checksum/SHA1/86 992s ok 459 /checksum/SHA1/87 992s ok 460 /checksum/SHA1/88 992s ok 461 /checksum/SHA1/89 992s ok 462 /checksum/SHA1/90 992s ok 463 /checksum/SHA1/91 992s ok 464 /checksum/SHA1/92 992s ok 465 /checksum/SHA1/93 992s ok 466 /checksum/SHA1/94 992s ok 467 /checksum/SHA1/95 992s ok 468 /checksum/SHA1/96 992s ok 469 /checksum/SHA1/97 992s ok 470 /checksum/SHA1/98 992s ok 471 /checksum/SHA1/99 992s ok 472 /checksum/SHA1/100 992s ok 473 /checksum/SHA1/101 992s ok 474 /checksum/SHA1/102 992s ok 475 /checksum/SHA1/103 992s ok 476 /checksum/SHA1/104 992s ok 477 /checksum/SHA1/105 992s ok 478 /checksum/SHA1/106 992s ok 479 /checksum/SHA1/107 992s ok 480 /checksum/SHA1/108 992s ok 481 /checksum/SHA1/109 992s ok 482 /checksum/SHA1/110 992s ok 483 /checksum/SHA1/111 992s ok 484 /checksum/SHA1/112 992s ok 485 /checksum/SHA1/113 992s ok 486 /checksum/SHA1/114 992s ok 487 /checksum/SHA1/115 992s ok 488 /checksum/SHA1/116 992s ok 489 /checksum/SHA1/117 992s ok 490 /checksum/SHA1/118 992s ok 491 /checksum/SHA1/119 992s ok 492 /checksum/SHA1/120 992s ok 493 /checksum/SHA1/121 992s ok 494 /checksum/SHA1/122 992s ok 495 /checksum/SHA1/123 992s ok 496 /checksum/SHA1/124 992s ok 497 /checksum/SHA1/125 992s ok 498 /checksum/SHA1/126 992s ok 499 /checksum/SHA1/127 992s ok 500 /checksum/SHA1/128 992s ok 501 /checksum/SHA1/129 992s ok 502 /checksum/SHA1/130 992s ok 503 /checksum/SHA1/131 992s ok 504 /checksum/SHA1/132 992s ok 505 /checksum/SHA1/133 992s ok 506 /checksum/SHA1/134 992s ok 507 /checksum/SHA1/135 992s ok 508 /checksum/SHA1/136 992s ok 509 /checksum/SHA1/137 992s ok 510 /checksum/SHA1/138 992s ok 511 /checksum/SHA1/139 992s ok 512 /checksum/SHA1/140 992s ok 513 /checksum/SHA1/141 992s ok 514 /checksum/SHA1/142 992s ok 515 /checksum/SHA1/143 992s ok 516 /checksum/SHA1/144 992s ok 517 /checksum/SHA1/145 992s ok 518 /checksum/SHA1/146 992s ok 519 /checksum/SHA1/147 992s ok 520 /checksum/SHA1/148 992s ok 521 /checksum/SHA1/149 992s ok 522 /checksum/SHA1/150 992s ok 523 /checksum/SHA1/151 992s ok 524 /checksum/SHA1/152 992s ok 525 /checksum/SHA1/153 992s ok 526 /checksum/SHA1/154 992s ok 527 /checksum/SHA1/155 992s ok 528 /checksum/SHA1/156 992s ok 529 /checksum/SHA1/157 992s ok 530 /checksum/SHA1/158 992s ok 531 /checksum/SHA1/159 992s ok 532 /checksum/SHA1/160 992s ok 533 /checksum/SHA1/161 992s ok 534 /checksum/SHA1/162 992s ok 535 /checksum/SHA1/163 992s ok 536 /checksum/SHA1/164 992s ok 537 /checksum/SHA1/165 992s ok 538 /checksum/SHA1/166 992s ok 539 /checksum/SHA1/167 992s ok 540 /checksum/SHA1/168 992s ok 541 /checksum/SHA1/169 992s ok 542 /checksum/SHA1/170 992s ok 543 /checksum/SHA1/171 992s ok 544 /checksum/SHA1/172 992s ok 545 /checksum/SHA1/173 992s ok 546 /checksum/SHA1/174 992s ok 547 /checksum/SHA1/175 992s ok 548 /checksum/SHA1/176 992s ok 549 /checksum/SHA1/177 992s ok 550 /checksum/SHA1/178 992s ok 551 /checksum/SHA1/179 992s ok 552 /checksum/SHA1/180 992s ok 553 /checksum/SHA1/181 992s ok 554 /checksum/SHA1/182 992s ok 555 /checksum/SHA1/183 992s ok 556 /checksum/SHA1/string 992s ok 557 /checksum/SHA1/bytes 992s # Start of reset tests 992s ok 558 /checksum/SHA1/reset/0 992s ok 559 /checksum/SHA1/reset/1 992s ok 560 /checksum/SHA1/reset/2 992s ok 561 /checksum/SHA1/reset/3 992s ok 562 /checksum/SHA1/reset/4 992s ok 563 /checksum/SHA1/reset/5 992s ok 564 /checksum/SHA1/reset/6 992s ok 565 /checksum/SHA1/reset/7 992s ok 566 /checksum/SHA1/reset/8 992s ok 567 /checksum/SHA1/reset/9 992s ok 568 /checksum/SHA1/reset/10 992s ok 569 /checksum/SHA1/reset/11 992s ok 570 /checksum/SHA1/reset/12 992s ok 571 /checksum/SHA1/reset/13 992s ok 572 /checksum/SHA1/reset/14 992s ok 573 /checksum/SHA1/reset/15 992s ok 574 /checksum/SHA1/reset/16 992s ok 575 /checksum/SHA1/reset/17 992s ok 576 /checksum/SHA1/reset/18 992s ok 577 /checksum/SHA1/reset/19 992s ok 578 /checksum/SHA1/reset/20 992s ok 579 /checksum/SHA1/reset/21 992s ok 580 /checksum/SHA1/reset/22 992s ok 581 /checksum/SHA1/reset/23 992s ok 582 /checksum/SHA1/reset/24 992s ok 583 /checksum/SHA1/reset/25 992s ok 584 /checksum/SHA1/reset/26 992s ok 585 /checksum/SHA1/reset/27 992s ok 586 /checksum/SHA1/reset/28 992s ok 587 /checksum/SHA1/reset/29 992s ok 588 /checksum/SHA1/reset/30 992s ok 589 /checksum/SHA1/reset/31 992s ok 590 /checksum/SHA1/reset/32 992s ok 591 /checksum/SHA1/reset/33 992s ok 592 /checksum/SHA1/reset/34 992s ok 593 /checksum/SHA1/reset/35 992s ok 594 /checksum/SHA1/reset/36 992s ok 595 /checksum/SHA1/reset/37 992s ok 596 /checksum/SHA1/reset/38 992s ok 597 /checksum/SHA1/reset/39 992s ok 598 /checksum/SHA1/reset/40 992s ok 599 /checksum/SHA1/reset/41 992s ok 600 /checksum/SHA1/reset/42 992s ok 601 /checksum/SHA1/reset/43 992s ok 602 /checksum/SHA1/reset/44 992s ok 603 /checksum/SHA1/reset/45 992s ok 604 /checksum/SHA1/reset/46 992s ok 605 /checksum/SHA1/reset/47 992s ok 606 /checksum/SHA1/reset/48 992s ok 607 /checksum/SHA1/reset/49 992s ok 608 /checksum/SHA1/reset/50 992s ok 609 /checksum/SHA1/reset/51 992s ok 610 /checksum/SHA1/reset/52 992s ok 611 /checksum/SHA1/reset/53 992s ok 612 /checksum/SHA1/reset/54 992s ok 613 /checksum/SHA1/reset/55 992s ok 614 /checksum/SHA1/reset/56 992s ok 615 /checksum/SHA1/reset/57 992s ok 616 /checksum/SHA1/reset/58 992s ok 617 /checksum/SHA1/reset/59 992s ok 618 /checksum/SHA1/reset/60 992s ok 619 /checksum/SHA1/reset/61 992s ok 620 /checksum/SHA1/reset/62 992s ok 621 /checksum/SHA1/reset/63 992s ok 622 /checksum/SHA1/reset/64 992s ok 623 /checksum/SHA1/reset/65 992s ok 624 /checksum/SHA1/reset/66 992s ok 625 /checksum/SHA1/reset/67 992s ok 626 /checksum/SHA1/reset/68 992s ok 627 /checksum/SHA1/reset/69 992s ok 628 /checksum/SHA1/reset/70 992s ok 629 /checksum/SHA1/reset/71 992s ok 630 /checksum/SHA1/reset/72 992s ok 631 /checksum/SHA1/reset/73 992s ok 632 /checksum/SHA1/reset/74 992s ok 633 /checksum/SHA1/reset/75 992s ok 634 /checksum/SHA1/reset/76 992s ok 635 /checksum/SHA1/reset/77 992s ok 636 /checksum/SHA1/reset/78 992s ok 637 /checksum/SHA1/reset/79 992s ok 638 /checksum/SHA1/reset/80 992s ok 639 /checksum/SHA1/reset/81 992s ok 640 /checksum/SHA1/reset/82 992s ok 641 /checksum/SHA1/reset/83 992s ok 642 /checksum/SHA1/reset/84 992s ok 643 /checksum/SHA1/reset/85 992s ok 644 /checksum/SHA1/reset/86 992s ok 645 /checksum/SHA1/reset/87 992s ok 646 /checksum/SHA1/reset/88 992s ok 647 /checksum/SHA1/reset/89 992s ok 648 /checksum/SHA1/reset/90 992s ok 649 /checksum/SHA1/reset/91 992s ok 650 /checksum/SHA1/reset/92 992s ok 651 /checksum/SHA1/reset/93 992s ok 652 /checksum/SHA1/reset/94 992s ok 653 /checksum/SHA1/reset/95 992s ok 654 /checksum/SHA1/reset/96 992s ok 655 /checksum/SHA1/reset/97 992s ok 656 /checksum/SHA1/reset/98 992s ok 657 /checksum/SHA1/reset/99 992s ok 658 /checksum/SHA1/reset/100 992s ok 659 /checksum/SHA1/reset/101 992s ok 660 /checksum/SHA1/reset/102 992s ok 661 /checksum/SHA1/reset/103 992s ok 662 /checksum/SHA1/reset/104 992s ok 663 /checksum/SHA1/reset/105 992s ok 664 /checksum/SHA1/reset/106 992s ok 665 /checksum/SHA1/reset/107 992s ok 666 /checksum/SHA1/reset/108 992s ok 667 /checksum/SHA1/reset/109 992s ok 668 /checksum/SHA1/reset/110 992s ok 669 /checksum/SHA1/reset/111 992s ok 670 /checksum/SHA1/reset/112 992s ok 671 /checksum/SHA1/reset/113 992s ok 672 /checksum/SHA1/reset/114 992s ok 673 /checksum/SHA1/reset/115 992s ok 674 /checksum/SHA1/reset/116 992s ok 675 /checksum/SHA1/reset/117 992s ok 676 /checksum/SHA1/reset/118 992s ok 677 /checksum/SHA1/reset/119 992s ok 678 /checksum/SHA1/reset/120 992s ok 679 /checksum/SHA1/reset/121 992s ok 680 /checksum/SHA1/reset/122 992s ok 681 /checksum/SHA1/reset/123 992s ok 682 /checksum/SHA1/reset/124 992s ok 683 /checksum/SHA1/reset/125 992s ok 684 /checksum/SHA1/reset/126 992s ok 685 /checksum/SHA1/reset/127 992s ok 686 /checksum/SHA1/reset/128 992s ok 687 /checksum/SHA1/reset/129 992s ok 688 /checksum/SHA1/reset/130 992s ok 689 /checksum/SHA1/reset/131 992s ok 690 /checksum/SHA1/reset/132 992s ok 691 /checksum/SHA1/reset/133 992s ok 692 /checksum/SHA1/reset/134 992s ok 693 /checksum/SHA1/reset/135 992s ok 694 /checksum/SHA1/reset/136 992s ok 695 /checksum/SHA1/reset/137 992s ok 696 /checksum/SHA1/reset/138 992s ok 697 /checksum/SHA1/reset/139 992s ok 698 /checksum/SHA1/reset/140 992s ok 699 /checksum/SHA1/reset/141 992s ok 700 /checksum/SHA1/reset/142 992s ok 701 /checksum/SHA1/reset/143 992s ok 702 /checksum/SHA1/reset/144 992s ok 703 /checksum/SHA1/reset/145 992s ok 704 /checksum/SHA1/reset/146 992s ok 705 /checksum/SHA1/reset/147 992s ok 706 /checksum/SHA1/reset/148 992s ok 707 /checksum/SHA1/reset/149 992s ok 708 /checksum/SHA1/reset/150 992s ok 709 /checksum/SHA1/reset/151 992s ok 710 /checksum/SHA1/reset/152 992s ok 711 /checksum/SHA1/reset/153 992s ok 712 /checksum/SHA1/reset/154 992s ok 713 /checksum/SHA1/reset/155 992s ok 714 /checksum/SHA1/reset/156 992s ok 715 /checksum/SHA1/reset/157 992s ok 716 /checksum/SHA1/reset/158 992s ok 717 /checksum/SHA1/reset/159 992s ok 718 /checksum/SHA1/reset/160 992s ok 719 /checksum/SHA1/reset/161 992s ok 720 /checksum/SHA1/reset/162 992s ok 721 /checksum/SHA1/reset/163 992s ok 722 /checksum/SHA1/reset/164 992s ok 723 /checksum/SHA1/reset/165 992s ok 724 /checksum/SHA1/reset/166 992s ok 725 /checksum/SHA1/reset/167 992s ok 726 /checksum/SHA1/reset/168 992s ok 727 /checksum/SHA1/reset/169 992s ok 728 /checksum/SHA1/reset/170 992s ok 729 /checksum/SHA1/reset/171 992s ok 730 /checksum/SHA1/reset/172 992s ok 731 /checksum/SHA1/reset/173 992s ok 732 /checksum/SHA1/reset/174 992s ok 733 /checksum/SHA1/reset/175 992s ok 734 /checksum/SHA1/reset/176 992s ok 735 /checksum/SHA1/reset/177 992s ok 736 /checksum/SHA1/reset/178 992s ok 737 /checksum/SHA1/reset/179 992s ok 738 /checksum/SHA1/reset/180 992s ok 739 /checksum/SHA1/reset/181 992s ok 740 /checksum/SHA1/reset/182 992s ok 741 /checksum/SHA1/reset/183 992s # End of reset tests 992s # End of SHA1 tests 992s # Start of SHA256 tests 992s ok 742 /checksum/SHA256/0 992s ok 743 /checksum/SHA256/1 992s ok 744 /checksum/SHA256/2 992s ok 745 /checksum/SHA256/3 992s ok 746 /checksum/SHA256/4 992s ok 747 /checksum/SHA256/5 992s ok 748 /checksum/SHA256/6 992s ok 749 /checksum/SHA256/7 992s ok 750 /checksum/SHA256/8 992s ok 751 /checksum/SHA256/9 992s ok 752 /checksum/SHA256/10 992s ok 753 /checksum/SHA256/11 992s ok 754 /checksum/SHA256/12 992s ok 755 /checksum/SHA256/13 992s ok 756 /checksum/SHA256/14 992s ok 757 /checksum/SHA256/15 992s ok 758 /checksum/SHA256/16 992s ok 759 /checksum/SHA256/17 992s ok 760 /checksum/SHA256/18 992s ok 761 /checksum/SHA256/19 992s ok 762 /checksum/SHA256/20 992s ok 763 /checksum/SHA256/21 992s ok 764 /checksum/SHA256/22 992s ok 765 /checksum/SHA256/23 992s ok 766 /checksum/SHA256/24 992s ok 767 /checksum/SHA256/25 992s ok 768 /checksum/SHA256/26 992s ok 769 /checksum/SHA256/27 992s ok 770 /checksum/SHA256/28 992s ok 771 /checksum/SHA256/29 992s ok 772 /checksum/SHA256/30 992s ok 773 /checksum/SHA256/31 992s ok 774 /checksum/SHA256/32 992s ok 775 /checksum/SHA256/33 992s ok 776 /checksum/SHA256/34 992s ok 777 /checksum/SHA256/35 992s ok 778 /checksum/SHA256/36 992s ok 779 /checksum/SHA256/37 992s ok 780 /checksum/SHA256/38 992s ok 781 /checksum/SHA256/39 992s ok 782 /checksum/SHA256/40 992s ok 783 /checksum/SHA256/41 992s ok 784 /checksum/SHA256/42 992s ok 785 /checksum/SHA256/43 992s ok 786 /checksum/SHA256/44 992s ok 787 /checksum/SHA256/45 992s ok 788 /checksum/SHA256/46 992s ok 789 /checksum/SHA256/47 992s ok 790 /checksum/SHA256/48 992s ok 791 /checksum/SHA256/49 992s ok 792 /checksum/SHA256/50 992s ok 793 /checksum/SHA256/51 992s ok 794 /checksum/SHA256/52 992s ok 795 /checksum/SHA256/53 992s ok 796 /checksum/SHA256/54 992s ok 797 /checksum/SHA256/55 992s ok 798 /checksum/SHA256/56 992s ok 799 /checksum/SHA256/57 992s ok 800 /checksum/SHA256/58 992s ok 801 /checksum/SHA256/59 992s ok 802 /checksum/SHA256/60 992s ok 803 /checksum/SHA256/61 992s ok 804 /checksum/SHA256/62 992s ok 805 /checksum/SHA256/63 992s ok 806 /checksum/SHA256/64 992s ok 807 /checksum/SHA256/65 992s ok 808 /checksum/SHA256/66 992s ok 809 /checksum/SHA256/67 992s ok 810 /checksum/SHA256/68 992s ok 811 /checksum/SHA256/69 992s ok 812 /checksum/SHA256/70 992s ok 813 /checksum/SHA256/71 992s ok 814 /checksum/SHA256/72 992s ok 815 /checksum/SHA256/73 992s ok 816 /checksum/SHA256/74 992s ok 817 /checksum/SHA256/75 992s ok 818 /checksum/SHA256/76 992s ok 819 /checksum/SHA256/77 992s ok 820 /checksum/SHA256/78 992s ok 821 /checksum/SHA256/79 992s ok 822 /checksum/SHA256/80 992s ok 823 /checksum/SHA256/81 992s ok 824 /checksum/SHA256/82 992s ok 825 /checksum/SHA256/83 992s ok 826 /checksum/SHA256/84 992s ok 827 /checksum/SHA256/85 992s ok 828 /checksum/SHA256/86 992s ok 829 /checksum/SHA256/87 992s ok 830 /checksum/SHA256/88 992s ok 831 /checksum/SHA256/89 992s ok 832 /checksum/SHA256/90 992s ok 833 /checksum/SHA256/91 992s ok 834 /checksum/SHA256/92 992s ok 835 /checksum/SHA256/93 992s ok 836 /checksum/SHA256/94 992s ok 837 /checksum/SHA256/95 992s ok 838 /checksum/SHA256/96 992s ok 839 /checksum/SHA256/97 992s ok 840 /checksum/SHA256/98 992s ok 841 /checksum/SHA256/99 992s ok 842 /checksum/SHA256/100 992s ok 843 /checksum/SHA256/101 992s ok 844 /checksum/SHA256/102 992s ok 845 /checksum/SHA256/103 992s ok 846 /checksum/SHA256/104 992s ok 847 /checksum/SHA256/105 992s ok 848 /checksum/SHA256/106 992s ok 849 /checksum/SHA256/107 992s ok 850 /checksum/SHA256/108 992s ok 851 /checksum/SHA256/109 992s ok 852 /checksum/SHA256/110 992s ok 853 /checksum/SHA256/111 992s ok 854 /checksum/SHA256/112 992s ok 855 /checksum/SHA256/113 992s ok 856 /checksum/SHA256/114 992s ok 857 /checksum/SHA256/115 992s ok 858 /checksum/SHA256/116 992s ok 859 /checksum/SHA256/117 992s ok 860 /checksum/SHA256/118 992s ok 861 /checksum/SHA256/119 992s ok 862 /checksum/SHA256/120 992s ok 863 /checksum/SHA256/121 992s ok 864 /checksum/SHA256/122 992s ok 865 /checksum/SHA256/123 992s ok 866 /checksum/SHA256/124 992s ok 867 /checksum/SHA256/125 992s ok 868 /checksum/SHA256/126 992s ok 869 /checksum/SHA256/127 992s ok 870 /checksum/SHA256/128 992s ok 871 /checksum/SHA256/129 992s ok 872 /checksum/SHA256/130 992s ok 873 /checksum/SHA256/131 992s ok 874 /checksum/SHA256/132 992s ok 875 /checksum/SHA256/133 992s ok 876 /checksum/SHA256/134 992s ok 877 /checksum/SHA256/135 992s ok 878 /checksum/SHA256/136 992s ok 879 /checksum/SHA256/137 992s ok 880 /checksum/SHA256/138 992s ok 881 /checksum/SHA256/139 992s ok 882 /checksum/SHA256/140 992s ok 883 /checksum/SHA256/141 992s ok 884 /checksum/SHA256/142 992s ok 885 /checksum/SHA256/143 992s ok 886 /checksum/SHA256/144 992s ok 887 /checksum/SHA256/145 992s ok 888 /checksum/SHA256/146 992s ok 889 /checksum/SHA256/147 992s ok 890 /checksum/SHA256/148 992s ok 891 /checksum/SHA256/149 992s ok 892 /checksum/SHA256/150 992s ok 893 /checksum/SHA256/151 992s ok 894 /checksum/SHA256/152 992s ok 895 /checksum/SHA256/153 992s ok 896 /checksum/SHA256/154 992s ok 897 /checksum/SHA256/155 992s ok 898 /checksum/SHA256/156 992s ok 899 /checksum/SHA256/157 992s ok 900 /checksum/SHA256/158 992s ok 901 /checksum/SHA256/159 992s ok 902 /checksum/SHA256/160 992s ok 903 /checksum/SHA256/161 992s ok 904 /checksum/SHA256/162 992s ok 905 /checksum/SHA256/163 992s ok 906 /checksum/SHA256/164 992s ok 907 /checksum/SHA256/165 992s ok 908 /checksum/SHA256/166 992s ok 909 /checksum/SHA256/167 992s ok 910 /checksum/SHA256/168 992s ok 911 /checksum/SHA256/169 992s ok 912 /checksum/SHA256/170 992s ok 913 /checksum/SHA256/171 992s ok 914 /checksum/SHA256/172 992s ok 915 /checksum/SHA256/173 992s ok 916 /checksum/SHA256/174 992s ok 917 /checksum/SHA256/175 992s ok 918 /checksum/SHA256/176 992s ok 919 /checksum/SHA256/177 992s ok 920 /checksum/SHA256/178 992s ok 921 /checksum/SHA256/179 992s ok 922 /checksum/SHA256/180 992s ok 923 /checksum/SHA256/181 992s ok 924 /checksum/SHA256/182 992s ok 925 /checksum/SHA256/183 992s ok 926 /checksum/SHA256/string 992s ok 927 /checksum/SHA256/bytes 992s # Start of reset tests 992s ok 928 /checksum/SHA256/reset/0 992s ok 929 /checksum/SHA256/reset/1 992s ok 930 /checksum/SHA256/reset/2 992s ok 931 /checksum/SHA256/reset/3 992s ok 932 /checksum/SHA256/reset/4 992s ok 933 /checksum/SHA256/reset/5 992s ok 934 /checksum/SHA256/reset/6 992s ok 935 /checksum/SHA256/reset/7 992s ok 936 /checksum/SHA256/reset/8 992s ok 937 /checksum/SHA256/reset/9 992s ok 938 /checksum/SHA256/reset/10 992s ok 939 /checksum/SHA256/reset/11 992s ok 940 /checksum/SHA256/reset/12 992s ok 941 /checksum/SHA256/reset/13 992s ok 942 /checksum/SHA256/reset/14 992s ok 943 /checksum/SHA256/reset/15 992s ok 944 /checksum/SHA256/reset/16 992s ok 945 /checksum/SHA256/reset/17 992s ok 946 /checksum/SHA256/reset/18 992s ok 947 /checksum/SHA256/reset/19 992s ok 948 /checksum/SHA256/reset/20 992s ok 949 /checksum/SHA256/reset/21 992s ok 950 /checksum/SHA256/reset/22 992s ok 951 /checksum/SHA256/reset/23 992s ok 952 /checksum/SHA256/reset/24 992s ok 953 /checksum/SHA256/reset/25 992s ok 954 /checksum/SHA256/reset/26 992s ok 955 /checksum/SHA256/reset/27 992s ok 956 /checksum/SHA256/reset/28 992s ok 957 /checksum/SHA256/reset/29 992s ok 958 /checksum/SHA256/reset/30 992s ok 959 /checksum/SHA256/reset/31 992s ok 960 /checksum/SHA256/reset/32 992s ok 961 /checksum/SHA256/reset/33 992s ok 962 /checksum/SHA256/reset/34 992s ok 963 /checksum/SHA256/reset/35 992s ok 964 /checksum/SHA256/reset/36 992s ok 965 /checksum/SHA256/reset/37 992s ok 966 /checksum/SHA256/reset/38 992s ok 967 /checksum/SHA256/reset/39 992s ok 968 /checksum/SHA256/reset/40 992s ok 969 /checksum/SHA256/reset/41 992s ok 970 /checksum/SHA256/reset/42 992s ok 971 /checksum/SHA256/reset/43 992s ok 972 /checksum/SHA256/reset/44 992s ok 973 /checksum/SHA256/reset/45 992s ok 974 /checksum/SHA256/reset/46 992s ok 975 /checksum/SHA256/reset/47 992s ok 976 /checksum/SHA256/reset/48 992s ok 977 /checksum/SHA256/reset/49 992s ok 978 /checksum/SHA256/reset/50 992s ok 979 /checksum/SHA256/reset/51 992s ok 980 /checksum/SHA256/reset/52 992s ok 981 /checksum/SHA256/reset/53 992s ok 982 /checksum/SHA256/reset/54 992s ok 983 /checksum/SHA256/reset/55 992s ok 984 /checksum/SHA256/reset/56 992s ok 985 /checksum/SHA256/reset/57 992s ok 986 /checksum/SHA256/reset/58 992s ok 987 /checksum/SHA256/reset/59 992s ok 988 /checksum/SHA256/reset/60 992s ok 989 /checksum/SHA256/reset/61 992s ok 990 /checksum/SHA256/reset/62 992s ok 991 /checksum/SHA256/reset/63 992s ok 992 /checksum/SHA256/reset/64 992s ok 993 /checksum/SHA256/reset/65 992s ok 994 /checksum/SHA256/reset/66 992s ok 995 /checksum/SHA256/reset/67 992s ok 996 /checksum/SHA256/reset/68 992s ok 997 /checksum/SHA256/reset/69 992s ok 998 /checksum/SHA256/reset/70 992s ok 999 /checksum/SHA256/reset/71 992s ok 1000 /checksum/SHA256/reset/72 992s ok 1001 /checksum/SHA256/reset/73 992s ok 1002 /checksum/SHA256/reset/74 992s ok 1003 /checksum/SHA256/reset/75 992s ok 1004 /checksum/SHA256/reset/76 992s ok 1005 /checksum/SHA256/reset/77 992s ok 1006 /checksum/SHA256/reset/78 992s ok 1007 /checksum/SHA256/reset/79 992s ok 1008 /checksum/SHA256/reset/80 992s ok 1009 /checksum/SHA256/reset/81 992s ok 1010 /checksum/SHA256/reset/82 992s ok 1011 /checksum/SHA256/reset/83 992s ok 1012 /checksum/SHA256/reset/84 992s ok 1013 /checksum/SHA256/reset/85 992s ok 1014 /checksum/SHA256/reset/86 992s ok 1015 /checksum/SHA256/reset/87 992s ok 1016 /checksum/SHA256/reset/88 992s ok 1017 /checksum/SHA256/reset/89 992s ok 1018 /checksum/SHA256/reset/90 992s ok 1019 /checksum/SHA256/reset/91 992s ok 1020 /checksum/SHA256/reset/92 992s ok 1021 /checksum/SHA256/reset/93 992s ok 1022 /checksum/SHA256/reset/94 992s ok 1023 /checksum/SHA256/reset/95 992s ok 1024 /checksum/SHA256/reset/96 992s ok 1025 /checksum/SHA256/reset/97 992s ok 1026 /checksum/SHA256/reset/98 992s ok 1027 /checksum/SHA256/reset/99 992s ok 1028 /checksum/SHA256/reset/100 992s ok 1029 /checksum/SHA256/reset/101 992s ok 1030 /checksum/SHA256/reset/102 992s ok 1031 /checksum/SHA256/reset/103 992s ok 1032 /checksum/SHA256/reset/104 992s ok 1033 /checksum/SHA256/reset/105 992s ok 1034 /checksum/SHA256/reset/106 992s ok 1035 /checksum/SHA256/reset/107 992s ok 1036 /checksum/SHA256/reset/108 992s ok 1037 /checksum/SHA256/reset/109 992s ok 1038 /checksum/SHA256/reset/110 992s ok 1039 /checksum/SHA256/reset/111 992s ok 1040 /checksum/SHA256/reset/112 992s ok 1041 /checksum/SHA256/reset/113 992s ok 1042 /checksum/SHA256/reset/114 992s ok 1043 /checksum/SHA256/reset/115 992s ok 1044 /checksum/SHA256/reset/116 992s ok 1045 /checksum/SHA256/reset/117 992s ok 1046 /checksum/SHA256/reset/118 992s ok 1047 /checksum/SHA256/reset/119 992s ok 1048 /checksum/SHA256/reset/120 992s ok 1049 /checksum/SHA256/reset/121 992s ok 1050 /checksum/SHA256/reset/122 992s ok 1051 /checksum/SHA256/reset/123 992s ok 1052 /checksum/SHA256/reset/124 992s ok 1053 /checksum/SHA256/reset/125 992s ok 1054 /checksum/SHA256/reset/126 992s ok 1055 /checksum/SHA256/reset/127 992s ok 1056 /checksum/SHA256/reset/128 992s ok 1057 /checksum/SHA256/reset/129 992s ok 1058 /checksum/SHA256/reset/130 992s ok 1059 /checksum/SHA256/reset/131 992s ok 1060 /checksum/SHA256/reset/132 992s ok 1061 /checksum/SHA256/reset/133 992s ok 1062 /checksum/SHA256/reset/134 992s ok 1063 /checksum/SHA256/reset/135 992s ok 1064 /checksum/SHA256/reset/136 992s ok 1065 /checksum/SHA256/reset/137 992s ok 1066 /checksum/SHA256/reset/138 992s ok 1067 /checksum/SHA256/reset/139 992s ok 1068 /checksum/SHA256/reset/140 992s ok 1069 /checksum/SHA256/reset/141 992s ok 1070 /checksum/SHA256/reset/142 992s ok 1071 /checksum/SHA256/reset/143 992s ok 1072 /checksum/SHA256/reset/144 992s ok 1073 /checksum/SHA256/reset/145 992s ok 1074 /checksum/SHA256/reset/146 992s ok 1075 /checksum/SHA256/reset/147 992s ok 1076 /checksum/SHA256/reset/148 992s ok 1077 /checksum/SHA256/reset/149 992s ok 1078 /checksum/SHA256/reset/150 992s ok 1079 /checksum/SHA256/reset/151 992s ok 1080 /checksum/SHA256/reset/152 992s ok 1081 /checksum/SHA256/reset/153 992s ok 1082 /checksum/SHA256/reset/154 992s ok 1083 /checksum/SHA256/reset/155 992s ok 1084 /checksum/SHA256/reset/156 992s ok 1085 /checksum/SHA256/reset/157 992s ok 1086 /checksum/SHA256/reset/158 992s ok 1087 /checksum/SHA256/reset/159 992s ok 1088 /checksum/SHA256/reset/160 992s ok 1089 /checksum/SHA256/reset/161 992s ok 1090 /checksum/SHA256/reset/162 992s ok 1091 /checksum/SHA256/reset/163 992s ok 1092 /checksum/SHA256/reset/164 992s ok 1093 /checksum/SHA256/reset/165 992s ok 1094 /checksum/SHA256/reset/166 992s ok 1095 /checksum/SHA256/reset/167 992s ok 1096 /checksum/SHA256/reset/168 992s ok 1097 /checksum/SHA256/reset/169 992s ok 1098 /checksum/SHA256/reset/170 992s ok 1099 /checksum/SHA256/reset/171 992s ok 1100 /checksum/SHA256/reset/172 992s ok 1101 /checksum/SHA256/reset/173 992s ok 1102 /checksum/SHA256/reset/174 992s ok 1103 /checksum/SHA256/reset/175 992s ok 1104 /checksum/SHA256/reset/176 992s ok 1105 /checksum/SHA256/reset/177 992s ok 1106 /checksum/SHA256/reset/178 992s ok 1107 /checksum/SHA256/reset/179 992s ok 1108 /checksum/SHA256/reset/180 992s ok 1109 /checksum/SHA256/reset/181 992s ok 1110 /checksum/SHA256/reset/182 992s ok 1111 /checksum/SHA256/reset/183 992s # End of reset tests 992s # End of SHA256 tests 992s # Start of SHA384 tests 992s ok 1112 /checksum/SHA384/0 992s ok 1113 /checksum/SHA384/1 992s ok 1114 /checksum/SHA384/2 992s ok 1115 /checksum/SHA384/3 992s ok 1116 /checksum/SHA384/4 992s ok 1117 /checksum/SHA384/5 992s ok 1118 /checksum/SHA384/6 992s ok 1119 /checksum/SHA384/7 992s ok 1120 /checksum/SHA384/8 992s ok 1121 /checksum/SHA384/9 992s ok 1122 /checksum/SHA384/10 992s ok 1123 /checksum/SHA384/11 992s ok 1124 /checksum/SHA384/12 992s ok 1125 /checksum/SHA384/13 992s ok 1126 /checksum/SHA384/14 992s ok 1127 /checksum/SHA384/15 992s ok 1128 /checksum/SHA384/16 992s ok 1129 /checksum/SHA384/17 992s ok 1130 /checksum/SHA384/18 992s ok 1131 /checksum/SHA384/19 992s ok 1132 /checksum/SHA384/20 992s ok 1133 /checksum/SHA384/21 992s ok 1134 /checksum/SHA384/22 992s ok 1135 /checksum/SHA384/23 992s ok 1136 /checksum/SHA384/24 992s ok 1137 /checksum/SHA384/25 992s ok 1138 /checksum/SHA384/26 992s ok 1139 /checksum/SHA384/27 992s ok 1140 /checksum/SHA384/28 992s ok 1141 /checksum/SHA384/29 992s ok 1142 /checksum/SHA384/30 992s ok 1143 /checksum/SHA384/31 992s ok 1144 /checksum/SHA384/32 992s ok 1145 /checksum/SHA384/33 992s ok 1146 /checksum/SHA384/34 992s ok 1147 /checksum/SHA384/35 992s ok 1148 /checksum/SHA384/36 992s ok 1149 /checksum/SHA384/37 992s ok 1150 /checksum/SHA384/38 992s ok 1151 /checksum/SHA384/39 992s ok 1152 /checksum/SHA384/40 992s ok 1153 /checksum/SHA384/41 992s ok 1154 /checksum/SHA384/42 992s ok 1155 /checksum/SHA384/43 992s ok 1156 /checksum/SHA384/44 992s ok 1157 /checksum/SHA384/45 992s ok 1158 /checksum/SHA384/46 992s ok 1159 /checksum/SHA384/47 992s ok 1160 /checksum/SHA384/48 992s ok 1161 /checksum/SHA384/49 992s ok 1162 /checksum/SHA384/50 992s ok 1163 /checksum/SHA384/51 992s ok 1164 /checksum/SHA384/52 992s ok 1165 /checksum/SHA384/53 992s ok 1166 /checksum/SHA384/54 992s ok 1167 /checksum/SHA384/55 992s ok 1168 /checksum/SHA384/56 992s ok 1169 /checksum/SHA384/57 992s ok 1170 /checksum/SHA384/58 992s ok 1171 /checksum/SHA384/59 992s ok 1172 /checksum/SHA384/60 992s ok 1173 /checksum/SHA384/61 992s ok 1174 /checksum/SHA384/62 992s ok 1175 /checksum/SHA384/63 992s ok 1176 /checksum/SHA384/64 992s ok 1177 /checksum/SHA384/65 992s ok 1178 /checksum/SHA384/66 992s ok 1179 /checksum/SHA384/67 992s ok 1180 /checksum/SHA384/68 992s ok 1181 /checksum/SHA384/69 992s ok 1182 /checksum/SHA384/70 992s ok 1183 /checksum/SHA384/71 992s ok 1184 /checksum/SHA384/72 992s ok 1185 /checksum/SHA384/73 992s ok 1186 /checksum/SHA384/74 992s ok 1187 /checksum/SHA384/75 992s ok 1188 /checksum/SHA384/76 992s ok 1189 /checksum/SHA384/77 992s ok 1190 /checksum/SHA384/78 992s ok 1191 /checksum/SHA384/79 992s ok 1192 /checksum/SHA384/80 992s ok 1193 /checksum/SHA384/81 992s ok 1194 /checksum/SHA384/82 992s ok 1195 /checksum/SHA384/83 992s ok 1196 /checksum/SHA384/84 992s ok 1197 /checksum/SHA384/85 992s ok 1198 /checksum/SHA384/86 992s ok 1199 /checksum/SHA384/87 992s ok 1200 /checksum/SHA384/88 992s ok 1201 /checksum/SHA384/89 992s ok 1202 /checksum/SHA384/90 992s ok 1203 /checksum/SHA384/91 992s ok 1204 /checksum/SHA384/92 992s ok 1205 /checksum/SHA384/93 992s ok 1206 /checksum/SHA384/94 992s ok 1207 /checksum/SHA384/95 992s ok 1208 /checksum/SHA384/96 992s ok 1209 /checksum/SHA384/97 992s ok 1210 /checksum/SHA384/98 992s ok 1211 /checksum/SHA384/99 992s ok 1212 /checksum/SHA384/100 992s ok 1213 /checksum/SHA384/101 992s ok 1214 /checksum/SHA384/102 992s ok 1215 /checksum/SHA384/103 992s ok 1216 /checksum/SHA384/104 992s ok 1217 /checksum/SHA384/105 992s ok 1218 /checksum/SHA384/106 992s ok 1219 /checksum/SHA384/107 992s ok 1220 /checksum/SHA384/108 992s ok 1221 /checksum/SHA384/109 992s ok 1222 /checksum/SHA384/110 992s ok 1223 /checksum/SHA384/111 992s ok 1224 /checksum/SHA384/112 992s ok 1225 /checksum/SHA384/113 992s ok 1226 /checksum/SHA384/114 992s ok 1227 /checksum/SHA384/115 992s ok 1228 /checksum/SHA384/116 992s ok 1229 /checksum/SHA384/117 992s ok 1230 /checksum/SHA384/118 992s ok 1231 /checksum/SHA384/119 992s ok 1232 /checksum/SHA384/120 992s ok 1233 /checksum/SHA384/121 992s ok 1234 /checksum/SHA384/122 992s ok 1235 /checksum/SHA384/123 992s ok 1236 /checksum/SHA384/124 992s ok 1237 /checksum/SHA384/125 992s ok 1238 /checksum/SHA384/126 992s ok 1239 /checksum/SHA384/127 992s ok 1240 /checksum/SHA384/128 992s ok 1241 /checksum/SHA384/129 992s ok 1242 /checksum/SHA384/130 992s ok 1243 /checksum/SHA384/131 992s ok 1244 /checksum/SHA384/132 992s ok 1245 /checksum/SHA384/133 992s ok 1246 /checksum/SHA384/134 992s ok 1247 /checksum/SHA384/135 992s ok 1248 /checksum/SHA384/136 992s ok 1249 /checksum/SHA384/137 992s ok 1250 /checksum/SHA384/138 992s ok 1251 /checksum/SHA384/139 992s ok 1252 /checksum/SHA384/140 992s ok 1253 /checksum/SHA384/141 992s ok 1254 /checksum/SHA384/142 992s ok 1255 /checksum/SHA384/143 992s ok 1256 /checksum/SHA384/144 992s ok 1257 /checksum/SHA384/145 992s ok 1258 /checksum/SHA384/146 992s ok 1259 /checksum/SHA384/147 992s ok 1260 /checksum/SHA384/148 992s ok 1261 /checksum/SHA384/149 992s ok 1262 /checksum/SHA384/150 992s ok 1263 /checksum/SHA384/151 992s ok 1264 /checksum/SHA384/152 992s ok 1265 /checksum/SHA384/153 992s ok 1266 /checksum/SHA384/154 992s ok 1267 /checksum/SHA384/155 992s ok 1268 /checksum/SHA384/156 992s ok 1269 /checksum/SHA384/157 992s ok 1270 /checksum/SHA384/158 992s ok 1271 /checksum/SHA384/159 992s ok 1272 /checksum/SHA384/160 992s ok 1273 /checksum/SHA384/161 992s ok 1274 /checksum/SHA384/162 992s ok 1275 /checksum/SHA384/163 992s ok 1276 /checksum/SHA384/164 992s ok 1277 /checksum/SHA384/165 992s ok 1278 /checksum/SHA384/166 992s ok 1279 /checksum/SHA384/167 992s ok 1280 /checksum/SHA384/168 992s ok 1281 /checksum/SHA384/169 992s ok 1282 /checksum/SHA384/170 992s ok 1283 /checksum/SHA384/171 992s ok 1284 /checksum/SHA384/172 992s ok 1285 /checksum/SHA384/173 992s ok 1286 /checksum/SHA384/174 992s ok 1287 /checksum/SHA384/175 992s ok 1288 /checksum/SHA384/176 992s ok 1289 /checksum/SHA384/177 992s ok 1290 /checksum/SHA384/178 992s ok 1291 /checksum/SHA384/179 992s ok 1292 /checksum/SHA384/180 992s ok 1293 /checksum/SHA384/181 992s ok 1294 /checksum/SHA384/182 992s ok 1295 /checksum/SHA384/183 992s ok 1296 /checksum/SHA384/string 992s ok 1297 /checksum/SHA384/bytes 992s # Start of reset tests 992s ok 1298 /checksum/SHA384/reset/0 992s ok 1299 /checksum/SHA384/reset/1 992s ok 1300 /checksum/SHA384/reset/2 992s ok 1301 /checksum/SHA384/reset/3 992s ok 1302 /checksum/SHA384/reset/4 992s ok 1303 /checksum/SHA384/reset/5 992s ok 1304 /checksum/SHA384/reset/6 992s ok 1305 /checksum/SHA384/reset/7 992s ok 1306 /checksum/SHA384/reset/8 992s ok 1307 /checksum/SHA384/reset/9 992s ok 1308 /checksum/SHA384/reset/10 992s ok 1309 /checksum/SHA384/reset/11 992s ok 1310 /checksum/SHA384/reset/12 992s ok 1311 /checksum/SHA384/reset/13 992s ok 1312 /checksum/SHA384/reset/14 992s ok 1313 /checksum/SHA384/reset/15 992s ok 1314 /checksum/SHA384/reset/16 992s ok 1315 /checksum/SHA384/reset/17 992s ok 1316 /checksum/SHA384/reset/18 992s ok 1317 /checksum/SHA384/reset/19 992s ok 1318 /checksum/SHA384/reset/20 992s ok 1319 /checksum/SHA384/reset/21 992s ok 1320 /checksum/SHA384/reset/22 992s ok 1321 /checksum/SHA384/reset/23 992s ok 1322 /checksum/SHA384/reset/24 992s ok 1323 /checksum/SHA384/reset/25 992s ok 1324 /checksum/SHA384/reset/26 992s ok 1325 /checksum/SHA384/reset/27 992s ok 1326 /checksum/SHA384/reset/28 992s ok 1327 /checksum/SHA384/reset/29 992s ok 1328 /checksum/SHA384/reset/30 992s ok 1329 /checksum/SHA384/reset/31 992s ok 1330 /checksum/SHA384/reset/32 992s ok 1331 /checksum/SHA384/reset/33 992s ok 1332 /checksum/SHA384/reset/34 992s ok 1333 /checksum/SHA384/reset/35 992s ok 1334 /checksum/SHA384/reset/36 992s ok 1335 /checksum/SHA384/reset/37 992s ok 1336 /checksum/SHA384/reset/38 992s ok 1337 /checksum/SHA384/reset/39 992s ok 1338 /checksum/SHA384/reset/40 992s ok 1339 /checksum/SHA384/reset/41 992s ok 1340 /checksum/SHA384/reset/42 992s ok 1341 /checksum/SHA384/reset/43 992s ok 1342 /checksum/SHA384/reset/44 992s ok 1343 /checksum/SHA384/reset/45 992s ok 1344 /checksum/SHA384/reset/46 992s ok 1345 /checksum/SHA384/reset/47 992s ok 1346 /checksum/SHA384/reset/48 992s ok 1347 /checksum/SHA384/reset/49 992s ok 1348 /checksum/SHA384/reset/50 992s ok 1349 /checksum/SHA384/reset/51 992s ok 1350 /checksum/SHA384/reset/52 992s ok 1351 /checksum/SHA384/reset/53 992s ok 1352 /checksum/SHA384/reset/54 992s ok 1353 /checksum/SHA384/reset/55 992s ok 1354 /checksum/SHA384/reset/56 992s ok 1355 /checksum/SHA384/reset/57 992s ok 1356 /checksum/SHA384/reset/58 992s ok 1357 /checksum/SHA384/reset/59 992s ok 1358 /checksum/SHA384/reset/60 992s ok 1359 /checksum/SHA384/reset/61 992s ok 1360 /checksum/SHA384/reset/62 992s ok 1361 /checksum/SHA384/reset/63 992s ok 1362 /checksum/SHA384/reset/64 992s ok 1363 /checksum/SHA384/reset/65 992s ok 1364 /checksum/SHA384/reset/66 992s ok 1365 /checksum/SHA384/reset/67 992s ok 1366 /checksum/SHA384/reset/68 992s ok 1367 /checksum/SHA384/reset/69 992s ok 1368 /checksum/SHA384/reset/70 992s ok 1369 /checksum/SHA384/reset/71 992s ok 1370 /checksum/SHA384/reset/72 992s ok 1371 /checksum/SHA384/reset/73 992s ok 1372 /checksum/SHA384/reset/74 992s ok 1373 /checksum/SHA384/reset/75 992s ok 1374 /checksum/SHA384/reset/76 992s ok 1375 /checksum/SHA384/reset/77 992s ok 1376 /checksum/SHA384/reset/78 992s ok 1377 /checksum/SHA384/reset/79 992s ok 1378 /checksum/SHA384/reset/80 992s ok 1379 /checksum/SHA384/reset/81 992s ok 1380 /checksum/SHA384/reset/82 992s ok 1381 /checksum/SHA384/reset/83 992s ok 1382 /checksum/SHA384/reset/84 992s ok 1383 /checksum/SHA384/reset/85 992s ok 1384 /checksum/SHA384/reset/86 992s ok 1385 /checksum/SHA384/reset/87 992s ok 1386 /checksum/SHA384/reset/88 992s ok 1387 /checksum/SHA384/reset/89 992s ok 1388 /checksum/SHA384/reset/90 992s ok 1389 /checksum/SHA384/reset/91 992s ok 1390 /checksum/SHA384/reset/92 992s ok 1391 /checksum/SHA384/reset/93 992s ok 1392 /checksum/SHA384/reset/94 992s ok 1393 /checksum/SHA384/reset/95 992s ok 1394 /checksum/SHA384/reset/96 992s ok 1395 /checksum/SHA384/reset/97 992s ok 1396 /checksum/SHA384/reset/98 992s ok 1397 /checksum/SHA384/reset/99 992s ok 1398 /checksum/SHA384/reset/100 992s ok 1399 /checksum/SHA384/reset/101 992s ok 1400 /checksum/SHA384/reset/102 992s ok 1401 /checksum/SHA384/reset/103 992s ok 1402 /checksum/SHA384/reset/104 992s ok 1403 /checksum/SHA384/reset/105 992s ok 1404 /checksum/SHA384/reset/106 992s ok 1405 /checksum/SHA384/reset/107 992s ok 1406 /checksum/SHA384/reset/108 992s ok 1407 /checksum/SHA384/reset/109 992s ok 1408 /checksum/SHA384/reset/110 992s ok 1409 /checksum/SHA384/reset/111 992s ok 1410 /checksum/SHA384/reset/112 992s ok 1411 /checksum/SHA384/reset/113 992s ok 1412 /checksum/SHA384/reset/114 992s ok 1413 /checksum/SHA384/reset/115 992s ok 1414 /checksum/SHA384/reset/116 992s ok 1415 /checksum/SHA384/reset/117 992s ok 1416 /checksum/SHA384/reset/118 992s ok 1417 /checksum/SHA384/reset/119 992s ok 1418 /checksum/SHA384/reset/120 992s ok 1419 /checksum/SHA384/reset/121 992s ok 1420 /checksum/SHA384/reset/122 992s ok 1421 /checksum/SHA384/reset/123 992s ok 1422 /checksum/SHA384/reset/124 992s ok 1423 /checksum/SHA384/reset/125 992s ok 1424 /checksum/SHA384/reset/126 992s ok 1425 /checksum/SHA384/reset/127 992s ok 1426 /checksum/SHA384/reset/128 992s ok 1427 /checksum/SHA384/reset/129 992s ok 1428 /checksum/SHA384/reset/130 992s ok 1429 /checksum/SHA384/reset/131 992s ok 1430 /checksum/SHA384/reset/132 992s ok 1431 /checksum/SHA384/reset/133 992s ok 1432 /checksum/SHA384/reset/134 992s ok 1433 /checksum/SHA384/reset/135 992s ok 1434 /checksum/SHA384/reset/136 992s ok 1435 /checksum/SHA384/reset/137 992s ok 1436 /checksum/SHA384/reset/138 992s ok 1437 /checksum/SHA384/reset/139 992s ok 1438 /checksum/SHA384/reset/140 992s ok 1439 /checksum/SHA384/reset/141 992s ok 1440 /checksum/SHA384/reset/142 992s ok 1441 /checksum/SHA384/reset/143 992s ok 1442 /checksum/SHA384/reset/144 992s ok 1443 /checksum/SHA384/reset/145 992s ok 1444 /checksum/SHA384/reset/146 992s ok 1445 /checksum/SHA384/reset/147 992s ok 1446 /checksum/SHA384/reset/148 992s ok 1447 /checksum/SHA384/reset/149 992s ok 1448 /checksum/SHA384/reset/150 992s ok 1449 /checksum/SHA384/reset/151 992s ok 1450 /checksum/SHA384/reset/152 992s ok 1451 /checksum/SHA384/reset/153 992s ok 1452 /checksum/SHA384/reset/154 992s ok 1453 /checksum/SHA384/reset/155 992s ok 1454 /checksum/SHA384/reset/156 992s ok 1455 /checksum/SHA384/reset/157 992s ok 1456 /checksum/SHA384/reset/158 992s ok 1457 /checksum/SHA384/reset/159 992s ok 1458 /checksum/SHA384/reset/160 992s ok 1459 /checksum/SHA384/reset/161 992s ok 1460 /checksum/SHA384/reset/162 992s ok 1461 /checksum/SHA384/reset/163 992s ok 1462 /checksum/SHA384/reset/164 992s ok 1463 /checksum/SHA384/reset/165 992s ok 1464 /checksum/SHA384/reset/166 992s ok 1465 /checksum/SHA384/reset/167 992s ok 1466 /checksum/SHA384/reset/168 992s ok 1467 /checksum/SHA384/reset/169 992s ok 1468 /checksum/SHA384/reset/170 992s ok 1469 /checksum/SHA384/reset/171 992s ok 1470 /checksum/SHA384/reset/172 992s ok 1471 /checksum/SHA384/reset/173 992s ok 1472 /checksum/SHA384/reset/174 992s ok 1473 /checksum/SHA384/reset/175 992s ok 1474 /checksum/SHA384/reset/176 992s ok 1475 /checksum/SHA384/reset/177 992s ok 1476 /checksum/SHA384/reset/178 992s ok 1477 /checksum/SHA384/reset/179 992s ok 1478 /checksum/SHA384/reset/180 992s ok 1479 /checksum/SHA384/reset/181 992s ok 1480 /checksum/SHA384/reset/182 992s ok 1481 /checksum/SHA384/reset/183 992s # End of reset tests 992s # End of SHA384 tests 992s # Start of SHA512 tests 992s ok 1482 /checksum/SHA512/0 992s ok 1483 /checksum/SHA512/1 992s ok 1484 /checksum/SHA512/2 992s ok 1485 /checksum/SHA512/3 992s ok 1486 /checksum/SHA512/4 992s ok 1487 /checksum/SHA512/5 992s ok 1488 /checksum/SHA512/6 992s ok 1489 /checksum/SHA512/7 992s ok 1490 /checksum/SHA512/8 992s ok 1491 /checksum/SHA512/9 992s ok 1492 /checksum/SHA512/10 992s ok 1493 /checksum/SHA512/11 992s ok 1494 /checksum/SHA512/12 992s ok 1495 /checksum/SHA512/13 992s ok 1496 /checksum/SHA512/14 992s ok 1497 /checksum/SHA512/15 992s ok 1498 /checksum/SHA512/16 992s ok 1499 /checksum/SHA512/17 992s ok 1500 /checksum/SHA512/18 992s ok 1501 /checksum/SHA512/19 992s ok 1502 /checksum/SHA512/20 992s ok 1503 /checksum/SHA512/21 992s ok 1504 /checksum/SHA512/22 992s ok 1505 /checksum/SHA512/23 992s ok 1506 /checksum/SHA512/24 992s ok 1507 /checksum/SHA512/25 992s ok 1508 /checksum/SHA512/26 992s ok 1509 /checksum/SHA512/27 992s ok 1510 /checksum/SHA512/28 992s ok 1511 /checksum/SHA512/29 992s ok 1512 /checksum/SHA512/30 992s ok 1513 /checksum/SHA512/31 992s ok 1514 /checksum/SHA512/32 992s ok 1515 /checksum/SHA512/33 992s ok 1516 /checksum/SHA512/34 992s ok 1517 /checksum/SHA512/35 992s ok 1518 /checksum/SHA512/36 992s ok 1519 /checksum/SHA512/37 992s ok 1520 /checksum/SHA512/38 992s ok 1521 /checksum/SHA512/39 992s ok 1522 /checksum/SHA512/40 992s ok 1523 /checksum/SHA512/41 992s ok 1524 /checksum/SHA512/42 992s ok 1525 /checksum/SHA512/43 992s ok 1526 /checksum/SHA512/44 992s ok 1527 /checksum/SHA512/45 992s ok 1528 /checksum/SHA512/46 992s ok 1529 /checksum/SHA512/47 992s ok 1530 /checksum/SHA512/48 992s ok 1531 /checksum/SHA512/49 992s ok 1532 /checksum/SHA512/50 992s ok 1533 /checksum/SHA512/51 992s ok 1534 /checksum/SHA512/52 992s ok 1535 /checksum/SHA512/53 992s ok 1536 /checksum/SHA512/54 992s ok 1537 /checksum/SHA512/55 992s ok 1538 /checksum/SHA512/56 992s ok 1539 /checksum/SHA512/57 992s ok 1540 /checksum/SHA512/58 992s ok 1541 /checksum/SHA512/59 992s ok 1542 /checksum/SHA512/60 992s ok 1543 /checksum/SHA512/61 992s ok 1544 /checksum/SHA512/62 992s ok 1545 /checksum/SHA512/63 992s ok 1546 /checksum/SHA512/64 992s ok 1547 /checksum/SHA512/65 992s ok 1548 /checksum/SHA512/66 992s ok 1549 /checksum/SHA512/67 992s ok 1550 /checksum/SHA512/68 992s ok 1551 /checksum/SHA512/69 992s ok 1552 /checksum/SHA512/70 992s ok 1553 /checksum/SHA512/71 992s ok 1554 /checksum/SHA512/72 992s ok 1555 /checksum/SHA512/73 992s ok 1556 /checksum/SHA512/74 992s ok 1557 /checksum/SHA512/75 992s ok 1558 /checksum/SHA512/76 992s ok 1559 /checksum/SHA512/77 992s ok 1560 /checksum/SHA512/78 992s ok 1561 /checksum/SHA512/79 992s ok 1562 /checksum/SHA512/80 992s ok 1563 /checksum/SHA512/81 992s ok 1564 /checksum/SHA512/82 992s ok 1565 /checksum/SHA512/83 992s ok 1566 /checksum/SHA512/84 992s ok 1567 /checksum/SHA512/85 992s ok 1568 /checksum/SHA512/86 992s ok 1569 /checksum/SHA512/87 992s ok 1570 /checksum/SHA512/88 992s ok 1571 /checksum/SHA512/89 992s ok 1572 /checksum/SHA512/90 992s ok 1573 /checksum/SHA512/91 992s ok 1574 /checksum/SHA512/92 992s ok 1575 /checksum/SHA512/93 992s ok 1576 /checksum/SHA512/94 992s ok 1577 /checksum/SHA512/95 992s ok 1578 /checksum/SHA512/96 992s ok 1579 /checksum/SHA512/97 992s ok 1580 /checksum/SHA512/98 992s ok 1581 /checksum/SHA512/99 992s ok 1582 /checksum/SHA512/100 992s ok 1583 /checksum/SHA512/101 992s ok 1584 /checksum/SHA512/102 992s ok 1585 /checksum/SHA512/103 992s ok 1586 /checksum/SHA512/104 992s ok 1587 /checksum/SHA512/105 992s ok 1588 /checksum/SHA512/106 992s ok 1589 /checksum/SHA512/107 992s ok 1590 /checksum/SHA512/108 992s ok 1591 /checksum/SHA512/109 992s ok 1592 /checksum/SHA512/110 992s ok 1593 /checksum/SHA512/111 992s ok 1594 /checksum/SHA512/112 992s ok 1595 /checksum/SHA512/113 992s ok 1596 /checksum/SHA512/114 992s ok 1597 /checksum/SHA512/115 992s ok 1598 /checksum/SHA512/116 992s ok 1599 /checksum/SHA512/117 992s ok 1600 /checksum/SHA512/118 992s ok 1601 /checksum/SHA512/119 992s ok 1602 /checksum/SHA512/120 992s ok 1603 /checksum/SHA512/121 992s ok 1604 /checksum/SHA512/122 992s ok 1605 /checksum/SHA512/123 992s ok 1606 /checksum/SHA512/124 992s ok 1607 /checksum/SHA512/125 992s ok 1608 /checksum/SHA512/126 992s ok 1609 /checksum/SHA512/127 992s ok 1610 /checksum/SHA512/128 992s ok 1611 /checksum/SHA512/129 992s ok 1612 /checksum/SHA512/130 992s ok 1613 /checksum/SHA512/131 992s ok 1614 /checksum/SHA512/132 992s ok 1615 /checksum/SHA512/133 992s ok 1616 /checksum/SHA512/134 992s ok 1617 /checksum/SHA512/135 992s ok 1618 /checksum/SHA512/136 992s ok 1619 /checksum/SHA512/137 992s ok 1620 /checksum/SHA512/138 992s ok 1621 /checksum/SHA512/139 992s ok 1622 /checksum/SHA512/140 992s ok 1623 /checksum/SHA512/141 992s ok 1624 /checksum/SHA512/142 992s ok 1625 /checksum/SHA512/143 992s ok 1626 /checksum/SHA512/144 992s ok 1627 /checksum/SHA512/145 992s ok 1628 /checksum/SHA512/146 992s ok 1629 /checksum/SHA512/147 992s ok 1630 /checksum/SHA512/148 992s ok 1631 /checksum/SHA512/149 992s ok 1632 /checksum/SHA512/150 992s ok 1633 /checksum/SHA512/151 992s ok 1634 /checksum/SHA512/152 992s ok 1635 /checksum/SHA512/153 992s ok 1636 /checksum/SHA512/154 992s ok 1637 /checksum/SHA512/155 992s ok 1638 /checksum/SHA512/156 992s ok 1639 /checksum/SHA512/157 992s ok 1640 /checksum/SHA512/158 992s ok 1641 /checksum/SHA512/159 992s ok 1642 /checksum/SHA512/160 992s ok 1643 /checksum/SHA512/161 992s ok 1644 /checksum/SHA512/162 992s ok 1645 /checksum/SHA512/163 992s ok 1646 /checksum/SHA512/164 992s ok 1647 /checksum/SHA512/165 992s ok 1648 /checksum/SHA512/166 992s ok 1649 /checksum/SHA512/167 992s ok 1650 /checksum/SHA512/168 992s ok 1651 /checksum/SHA512/169 992s ok 1652 /checksum/SHA512/170 992s ok 1653 /checksum/SHA512/171 992s ok 1654 /checksum/SHA512/172 992s ok 1655 /checksum/SHA512/173 992s ok 1656 /checksum/SHA512/174 992s ok 1657 /checksum/SHA512/175 992s ok 1658 /checksum/SHA512/176 992s ok 1659 /checksum/SHA512/177 992s ok 1660 /checksum/SHA512/178 992s ok 1661 /checksum/SHA512/179 992s ok 1662 /checksum/SHA512/180 992s ok 1663 /checksum/SHA512/181 992s ok 1664 /checksum/SHA512/182 992s ok 1665 /checksum/SHA512/183 992s ok 1666 /checksum/SHA512/string 992s ok 1667 /checksum/SHA512/bytes 992s # Start of reset tests 992s ok 1668 /checksum/SHA512/reset/0 992s ok 1669 /checksum/SHA512/reset/1 992s ok 1670 /checksum/SHA512/reset/2 992s ok 1671 /checksum/SHA512/reset/3 992s ok 1672 /checksum/SHA512/reset/4 992s ok 1673 /checksum/SHA512/reset/5 992s ok 1674 /checksum/SHA512/reset/6 992s ok 1675 /checksum/SHA512/reset/7 992s ok 1676 /checksum/SHA512/reset/8 992s ok 1677 /checksum/SHA512/reset/9 992s ok 1678 /checksum/SHA512/reset/10 992s ok 1679 /checksum/SHA512/reset/11 992s ok 1680 /checksum/SHA512/reset/12 992s ok 1681 /checksum/SHA512/reset/13 992s ok 1682 /checksum/SHA512/reset/14 992s ok 1683 /checksum/SHA512/reset/15 992s ok 1684 /checksum/SHA512/reset/16 992s ok 1685 /checksum/SHA512/reset/17 992s ok 1686 /checksum/SHA512/reset/18 992s ok 1687 /checksum/SHA512/reset/19 992s ok 1688 /checksum/SHA512/reset/20 992s ok 1689 /checksum/SHA512/reset/21 992s ok 1690 /checksum/SHA512/reset/22 992s ok 1691 /checksum/SHA512/reset/23 992s ok 1692 /checksum/SHA512/reset/24 992s ok 1693 /checksum/SHA512/reset/25 992s ok 1694 /checksum/SHA512/reset/26 992s ok 1695 /checksum/SHA512/reset/27 992s ok 1696 /checksum/SHA512/reset/28 992s ok 1697 /checksum/SHA512/reset/29 992s ok 1698 /checksum/SHA512/reset/30 992s ok 1699 /checksum/SHA512/reset/31 992s ok 1700 /checksum/SHA512/reset/32 992s ok 1701 /checksum/SHA512/reset/33 992s ok 1702 /checksum/SHA512/reset/34 992s ok 1703 /checksum/SHA512/reset/35 992s ok 1704 /checksum/SHA512/reset/36 992s ok 1705 /checksum/SHA512/reset/37 992s ok 1706 /checksum/SHA512/reset/38 992s ok 1707 /checksum/SHA512/reset/39 992s ok 1708 /checksum/SHA512/reset/40 992s ok 1709 /checksum/SHA512/reset/41 992s ok 1710 /checksum/SHA512/reset/42 992s ok 1711 /checksum/SHA512/reset/43 992s ok 1712 /checksum/SHA512/reset/44 992s ok 1713 /checksum/SHA512/reset/45 992s ok 1714 /checksum/SHA512/reset/46 992s ok 1715 /checksum/SHA512/reset/47 992s ok 1716 /checksum/SHA512/reset/48 992s ok 1717 /checksum/SHA512/reset/49 992s ok 1718 /checksum/SHA512/reset/50 992s ok 1719 /checksum/SHA512/reset/51 992s ok 1720 /checksum/SHA512/reset/52 992s ok 1721 /checksum/SHA512/reset/53 992s ok 1722 /checksum/SHA512/reset/54 992s ok 1723 /checksum/SHA512/reset/55 992s ok 1724 /checksum/SHA512/reset/56 992s ok 1725 /checksum/SHA512/reset/57 992s ok 1726 /checksum/SHA512/reset/58 992s ok 1727 /checksum/SHA512/reset/59 992s ok 1728 /checksum/SHA512/reset/60 992s ok 1729 /checksum/SHA512/reset/61 992s ok 1730 /checksum/SHA512/reset/62 992s ok 1731 /checksum/SHA512/reset/63 992s ok 1732 /checksum/SHA512/reset/64 992s ok 1733 /checksum/SHA512/reset/65 992s ok 1734 /checksum/SHA512/reset/66 992s ok 1735 /checksum/SHA512/reset/67 992s ok 1736 /checksum/SHA512/reset/68 992s ok 1737 /checksum/SHA512/reset/69 992s ok 1738 /checksum/SHA512/reset/70 992s ok 1739 /checksum/SHA512/reset/71 992s ok 1740 /checksum/SHA512/reset/72 992s ok 1741 /checksum/SHA512/reset/73 992s ok 1742 /checksum/SHA512/reset/74 992s ok 1743 /checksum/SHA512/reset/75 992s ok 1744 /checksum/SHA512/reset/76 992s ok 1745 /checksum/SHA512/reset/77 992s ok 1746 /checksum/SHA512/reset/78 992s ok 1747 /checksum/SHA512/reset/79 992s ok 1748 /checksum/SHA512/reset/80 992s ok 1749 /checksum/SHA512/reset/81 992s ok 1750 /checksum/SHA512/reset/82 992s ok 1751 /checksum/SHA512/reset/83 992s ok 1752 /checksum/SHA512/reset/84 992s ok 1753 /checksum/SHA512/reset/85 992s ok 1754 /checksum/SHA512/reset/86 992s ok 1755 /checksum/SHA512/reset/87 992s ok 1756 /checksum/SHA512/reset/88 992s ok 1757 /checksum/SHA512/reset/89 992s ok 1758 /checksum/SHA512/reset/90 992s ok 1759 /checksum/SHA512/reset/91 992s ok 1760 /checksum/SHA512/reset/92 992s ok 1761 /checksum/SHA512/reset/93 992s ok 1762 /checksum/SHA512/reset/94 992s ok 1763 /checksum/SHA512/reset/95 992s ok 1764 /checksum/SHA512/reset/96 992s ok 1765 /checksum/SHA512/reset/97 992s ok 1766 /checksum/SHA512/reset/98 992s ok 1767 /checksum/SHA512/reset/99 992s ok 1768 /checksum/SHA512/reset/100 992s ok 1769 /checksum/SHA512/reset/101 992s ok 1770 /checksum/SHA512/reset/102 992s ok 1771 /checksum/SHA512/reset/103 992s ok 1772 /checksum/SHA512/reset/104 992s ok 1773 /checksum/SHA512/reset/105 992s ok 1774 /checksum/SHA512/reset/106 992s ok 1775 /checksum/SHA512/reset/107 992s ok 1776 /checksum/SHA512/reset/108 992s ok 1777 /checksum/SHA512/reset/109 992s ok 1778 /checksum/SHA512/reset/110 992s ok 1779 /checksum/SHA512/reset/111 992s ok 1780 /checksum/SHA512/reset/112 992s ok 1781 /checksum/SHA512/reset/113 992s ok 1782 /checksum/SHA512/reset/114 992s ok 1783 /checksum/SHA512/reset/115 992s ok 1784 /checksum/SHA512/reset/116 992s ok 1785 /checksum/SHA512/reset/117 992s ok 1786 /checksum/SHA512/reset/118 992s ok 1787 /checksum/SHA512/reset/119 992s ok 1788 /checksum/SHA512/reset/120 992s ok 1789 /checksum/SHA512/reset/121 992s ok 1790 /checksum/SHA512/reset/122 992s ok 1791 /checksum/SHA512/reset/123 992s ok 1792 /checksum/SHA512/reset/124 992s ok 1793 /checksum/SHA512/reset/125 992s ok 1794 /checksum/SHA512/reset/126 992s ok 1795 /checksum/SHA512/reset/127 992s ok 1796 /checksum/SHA512/reset/128 992s ok 1797 /checksum/SHA512/reset/129 992s ok 1798 /checksum/SHA512/reset/130 992s ok 1799 /checksum/SHA512/reset/131 992s ok 1800 /checksum/SHA512/reset/132 992s ok 1801 /checksum/SHA512/reset/133 992s ok 1802 /checksum/SHA512/reset/134 992s ok 1803 /checksum/SHA512/reset/135 992s ok 1804 /checksum/SHA512/reset/136 992s ok 1805 /checksum/SHA512/reset/137 992s ok 1806 /checksum/SHA512/reset/138 992s ok 1807 /checksum/SHA512/reset/139 992s ok 1808 /checksum/SHA512/reset/140 992s ok 1809 /checksum/SHA512/reset/141 992s ok 1810 /checksum/SHA512/reset/142 992s ok 1811 /checksum/SHA512/reset/143 992s ok 1812 /checksum/SHA512/reset/144 992s ok 1813 /checksum/SHA512/reset/145 992s ok 1814 /checksum/SHA512/reset/146 992s ok 1815 /checksum/SHA512/reset/147 992s ok 1816 /checksum/SHA512/reset/148 992s ok 1817 /checksum/SHA512/reset/149 992s ok 1818 /checksum/SHA512/reset/150 992s ok 1819 /checksum/SHA512/reset/151 992s ok 1820 /checksum/SHA512/reset/152 992s ok 1821 /checksum/SHA512/reset/153 992s ok 1822 /checksum/SHA512/reset/154 992s ok 1823 /checksum/SHA512/reset/155 992s ok 1824 /checksum/SHA512/reset/156 992s ok 1825 /checksum/SHA512/reset/157 992s ok 1826 /checksum/SHA512/reset/158 992s ok 1827 /checksum/SHA512/reset/159 992s ok 1828 /checksum/SHA512/reset/160 992s ok 1829 /checksum/SHA512/reset/161 992s ok 1830 /checksum/SHA512/reset/162 992s ok 1831 /checksum/SHA512/reset/163 992s ok 1832 /checksum/SHA512/reset/164 992s ok 1833 /checksum/SHA512/reset/165 992s ok 1834 /checksum/SHA512/reset/166 992s ok 1835 /checksum/SHA512/reset/167 992s ok 1836 /checksum/SHA512/reset/168 992s ok 1837 /checksum/SHA512/reset/169 992s ok 1838 /checksum/SHA512/reset/170 992s ok 1839 /checksum/SHA512/reset/171 992s ok 1840 /checksum/SHA512/reset/172 992s ok 1841 /checksum/SHA512/reset/173 992s ok 1842 /checksum/SHA512/reset/174 992s ok 1843 /checksum/SHA512/reset/175 992s ok 1844 /checksum/SHA512/reset/176 992s ok 1845 /checksum/SHA512/reset/177 992s ok 1846 /checksum/SHA512/reset/178 992s ok 1847 /checksum/SHA512/reset/179 992s ok 1848 /checksum/SHA512/reset/180 992s ok 1849 /checksum/SHA512/reset/181 992s ok 1850 /checksum/SHA512/reset/182 992s ok 1851 /checksum/SHA512/reset/183 992s # End of reset tests 992s # End of SHA512 tests 992s # End of checksum tests 992s ok - glib/checksum.test 992s # Running test: glib/references.test 992s TAP version 14 992s # random seed: R02Scf4153e0fb215b58c4fe73d6dc695819 992s 1..1 992s # Start of gobject tests 992s ok 1 /gobject/references 992s # End of gobject tests 992s ok - glib/references.test 992s # Running test: glib/gobject-private.test 992s TAP version 14 992s # random seed: R02S6125296da8d68f2a05c785683c906bc3 992s 1..3 992s # Start of private tests 992s ok 1 /private/instance 992s ok 2 /private/derived-instance 992s ok 3 /private/mixed-derived-instance 992s # End of private tests 992s ok - glib/gobject-private.test 992s # Running test: glib/gmenumodel.test 992s TAP version 14 992s # random seed: R02S37cf82246f4b68590ff0882b3db67562 992s 1..15 992s # Start of gmenu tests 992s # Executing: glib/gmenumodel.test 994s ok 1 /gmenu/equality 994s # slow test /gmenu/equality executed in 2.07 secs 997s ok 2 /gmenu/random 997s # slow test /gmenu/random executed in 2.65 secs 997s ok 3 /gmenu/attributes 997s ok 4 /gmenu/links 997s ok 5 /gmenu/mutable 997s ok 6 /gmenu/convenience 997s ok 7 /gmenu/menuitem 997s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 997s ok 8 /gmenu/input-validation 997s # Start of dbus tests 997s # Executing: glib/gmenumodel.test 998s ok 9 /gmenu/dbus/roundtrip 998s # slow test /gmenu/dbus/roundtrip executed in 1.02 secs 998s ok 10 /gmenu/dbus/subscriptions 1000s ok 11 /gmenu/dbus/threaded 1000s # slow test /gmenu/dbus/threaded executed in 1.95 secs 1000s # Start of peer tests 1001s ok 12 /gmenu/dbus/peer/roundtrip 1001s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1002s ok 13 /gmenu/dbus/peer/subscriptions 1002s # End of peer tests 1002s # Start of export tests 1002s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1002s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1002s ok 14 /gmenu/dbus/export/error-handling 1002s # End of export tests 1002s # End of dbus tests 1002s # Start of attributes tests 1002s ok 15 /gmenu/attributes/iterate 1002s # End of attributes tests 1002s # End of gmenu tests 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s ok - glib/gmenumodel.test 1002s # Running test: glib/g-file-info.test 1002s TAP version 14 1002s # random seed: R02S8a7e5945d3172e067af49613139f7ba7 1002s 1..6 1002s # Start of g-file-info tests 1002s ok 1 /g-file-info/test_g_file_info 1002s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1002s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1002s ok 2 /g-file-info/xattrs 1002s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1002s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1002s ok 3 /g-file-info/set-modified-date-time-precision 1002s # Start of test_g_file_info tests 1002s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1002s ok - glib/g-file-info.test 1002s # Running test: glib/autoptr-gio.test 1002s ok - glib/autoptr-gio.test 1002s # Running test: glib/gdbus-connection-slow.test 1002s ok 4 /g-file-info/test_g_file_info/modification-time 1002s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1002s ok 5 /g-file-info/test_g_file_info/access-time 1002s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1002s ok 6 /g-file-info/test_g_file_info/creation-time 1002s # End of test_g_file_info tests 1002s # End of g-file-info tests 1002s TAP version 14 1002s # random seed: R02Sfa74de77d7a96943463902ce530d3f6d 1002s 1..1 1002s # Start of autoptr tests 1002s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1002s ok 1 /autoptr/autoptr 1002s # End of autoptr tests 1002s TAP version 14 1002s # random seed: R02Sdec10a18841fbacdbe5598b68f6f0506 1002s 1..2 1002s # Start of gdbus tests 1002s # Start of connection tests 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/flush/.dirs/runtime 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s ok 1 /gdbus/connection/flush 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_VCHW52/gdbus/connection/large_message/.dirs/runtime 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1002s ok 2 /gdbus/connection/large_message 1002s # End of connection tests 1002s # End of gdbus tests 1002s ok - glib/gdbus-connection-slow.test 1002s # Running test: glib/markup-escape.test 1002s TAP version 14 1002s # random seed: R02S20d3f1f9cdb894f43dc9c089001ec2b2 1002s 1..41 1002s # Start of markup tests 1002s ok 1 /markup/format 1002s # Start of escape-text tests 1002s ok 2 /markup/escape-text/0 1002s ok 3 /markup/escape-text/1 1002s ok 4 /markup/escape-text/2 1002s ok 5 /markup/escape-text/3 1002s ok 6 /markup/escape-text/4 1002s ok 7 /markup/escape-text/5 1002s ok 8 /markup/escape-text/6 1002s ok 9 /markup/escape-text/7 1002s ok 10 /markup/escape-text/8 1002s ok 11 /markup/escape-text/9 1002s ok 12 /markup/escape-text/10 1002s ok 13 /markup/escape-text/11 1002s ok 14 /markup/escape-text/12 1002s ok 15 /markup/escape-text/13 1002s ok 16 /markup/escape-text/14 1002s ok 17 /markup/escape-text/15 1002s ok 18 /markup/escape-text/16 1002s ok 19 /markup/escape-text/17 1002s ok 20 /markup/escape-text/18 1002s ok 21 /markup/escape-text/19 1002s ok 22 /markup/escape-text/20 1002s ok 23 /markup/escape-text/21 1002s ok 24 /markup/escape-text/22 1002s # End of escape-text tests 1002s # Start of escape-unichar tests 1002s ok 25 /markup/escape-unichar/0 1002s ok 26 /markup/escape-unichar/1 1002s ok 27 /markup/escape-unichar/2 1002s ok 28 /markup/escape-unichar/3 1002s ok 29 /markup/escape-unichar/4 1002s ok 30 /markup/escape-unichar/5 1002s ok 31 /markup/escape-unichar/6 1002s ok 32 /markup/escape-unichar/7 1002s ok 33 /markup/escape-unichar/8 1002s ok 34 /markup/escape-unichar/9 1002s ok 35 /markup/escape-unichar/10 1002s ok 36 /markup/escape-unichar/11 1002s ok 37 /markup/escape-unichar/12 1002s ok 38 /markup/escape-unichar/13 1002s ok 39 /markup/escape-unichar/14 1002s ok 40 /markup/escape-unichar/15 1002s ok 41 /markup/escape-unichar/16 1002s # End of escape-unichar tests 1002s # End of markup tests 1002s ok - glib/markup-escape.test 1002s # Running test: glib/repository.test 1002s TAP version 14 1002s # random seed: R02S3e25e09b28cc8eb0ee55786ea93bc59a 1002s 1..23 1002s # Start of repository tests 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/basic/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/basic/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/basic/.dirs/system-config1:/tmp/test_repository_LCB852/repository/basic/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/basic/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/basic/.dirs/system-data1:/tmp/test_repository_LCB852/repository/basic/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/basic/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/basic/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/basic/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1002s ok 1 /repository/basic 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/info/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/info/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/info/.dirs/system-config1:/tmp/test_repository_LCB852/repository/info/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/info/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/info/.dirs/system-data1:/tmp/test_repository_LCB852/repository/info/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/info/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/info/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/info/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1002s ok 2 /repository/info 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/dependencies/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/dependencies/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/dependencies/.dirs/system-config1:/tmp/test_repository_LCB852/repository/dependencies/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/dependencies/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/dependencies/.dirs/system-data1:/tmp/test_repository_LCB852/repository/dependencies/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/dependencies/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/dependencies/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/dependencies/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1002s ok 3 /repository/dependencies 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/arg-info/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/arg-info/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/arg-info/.dirs/system-config1:/tmp/test_repository_LCB852/repository/arg-info/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/arg-info/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/arg-info/.dirs/system-data1:/tmp/test_repository_LCB852/repository/arg-info/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/arg-info/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/arg-info/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/arg-info/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1002s ok 4 /repository/arg-info 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/callable-info/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/callable-info/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/callable-info/.dirs/system-config1:/tmp/test_repository_LCB852/repository/callable-info/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/callable-info/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/callable-info/.dirs/system-data1:/tmp/test_repository_LCB852/repository/callable-info/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/callable-info/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/callable-info/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/callable-info/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1002s ok 5 /repository/callable-info 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/callback-info/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/callback-info/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/callback-info/.dirs/system-config1:/tmp/test_repository_LCB852/repository/callback-info/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/callback-info/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/callback-info/.dirs/system-data1:/tmp/test_repository_LCB852/repository/callback-info/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/callback-info/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/callback-info/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/callback-info/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1002s ok 6 /repository/callback-info 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/char-types/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/char-types/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/char-types/.dirs/system-config1:/tmp/test_repository_LCB852/repository/char-types/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/char-types/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/char-types/.dirs/system-data1:/tmp/test_repository_LCB852/repository/char-types/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/char-types/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/char-types/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/char-types/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1002s ok 7 /repository/char-types 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/constructor-return-type/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1002s ok 8 /repository/constructor-return-type 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/enum-info-c-identifier/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1002s ok 9 /repository/enum-info-c-identifier 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/enum-info-static-methods/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/enum-info-static-methods summary: Test an enum with methods 1002s ok 10 /repository/enum-info-static-methods 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/error-quark/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/error-quark/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/error-quark/.dirs/system-config1:/tmp/test_repository_LCB852/repository/error-quark/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/error-quark/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/error-quark/.dirs/system-data1:/tmp/test_repository_LCB852/repository/error-quark/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/error-quark/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/error-quark/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/error-quark/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/error-quark summary: Test finding an error quark by error domain 1002s ok 11 /repository/error-quark 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/flags-info-c-identifier/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1002s ok 12 /repository/flags-info-c-identifier 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/fundamental-ref-func/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1002s ok 13 /repository/fundamental-ref-func 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/instance-method-ownership-transfer/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1002s ok 14 /repository/instance-method-ownership-transfer 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/object-gtype-interfaces/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1002s ok 15 /repository/object-gtype-interfaces 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/signal-info-with-array-length-arg/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1002s ok 16 /repository/signal-info-with-array-length-arg 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_LCB852/repository/type-info-name/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_LCB852/repository/type-info-name/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/type-info-name/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1002s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1002s ok 17 /repository/type-info-name 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/vfunc-info-with-no-invoker/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1002s ok 18 /repository/vfunc-info-with-no-invoker 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1002s ok 19 /repository/vfunc-info-with-invoker-on-interface 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1002s ok 20 /repository/vfunc-info-with-invoker-on-object 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/find-by-gtype/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/find-by-gtype summary: Test finding a GType 1002s ok 21 /repository/find-by-gtype 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/loaded-namespaces/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1002s ok 22 /repository/loaded-namespaces 1002s # Start of base-info tests 1002s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/home 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/cache 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_LCB852/repository/base-info/clear/.dirs/system-config2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/config 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_LCB852/repository/base-info/clear/.dirs/system-data2 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/data 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/state 1002s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_LCB852/repository/base-info/clear/.dirs/runtime 1002s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1002s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1002s ok 23 /repository/base-info/clear 1002s # End of base-info tests 1002s # End of repository tests 1002s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1002s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1002s and make sure you have glib build dependencies installed, including 1002s meson. 1002s ok - glib/repository.test 1002s # Running test: glib/static-link.test 1002s # Executing: glib/static-link.test 1002s ok # SKIP - glib/static-link.test 1002s # Running test: glib/genmarshal.py.test 1003s TAP version 13 1003s ok 1 __main__.TestGenmarshal.test_empty_list 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmp8wvkmje5 1003s # /tmp/tmp8wvkmje5/tmpc2a2va6w.list: 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8wvkmje5/tmpc2a2va6w.list', '--header', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # #include 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8wvkmje5/tmpc2a2va6w.list', '--body', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #include 1003s # 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # Error: 1003s ok 2 __main__.TestGenmarshal.test_help 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmpop42hloi 1003s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1003s # Return code: 0 1003s # Output: 1003s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1003s # [--internal] [--valist-marshallers] [-v] 1003s # [--g-fatal-warnings] [--include-header [HEADER]] 1003s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1003s # [--prototypes] [--header] [--body] [--stdinc | 1003s # --nostdinc] [--quiet | --verbose] 1003s # [FILE ...] 1003s # 1003s # Generate signal marshallers for GObject 1003s # 1003s # positional arguments: 1003s # FILE Files with lists of marshallers to generate, or "-" 1003s # for standard input 1003s # 1003s # options: 1003s # -h, --help show this help message and exit 1003s # --prefix STRING Specify marshaller prefix 1003s # --output FILE Write output into the specified file 1003s # --skip-source Skip source location comments 1003s # --internal Mark generated functions as internal 1003s # --valist-marshallers Generate va_list marshallers 1003s # -v, --version Print version information, and exit 1003s # --g-fatal-warnings Make warnings fatal 1003s # --include-header [HEADER] 1003s # Include the specified header in the body 1003s # --pragma-once Use "pragma once" as the inclusion guard 1003s # -D CPP_DEFINES Pre-processor define 1003s # -U CPP_UNDEFINES Pre-processor undefine 1003s # --prototypes Generate the marshallers prototype in the C code 1003s # --header Generate C headers 1003s # --body Generate C code 1003s # --stdinc Include standard marshallers 1003s # --nostdinc Use standard marshallers 1003s # --quiet Only print warnings and errors 1003s # --verbose Be verbose, and include debugging information 1003s # Error: 1003s ok 3 __main__.TestGenmarshal.test_no_args 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmp_rn0rnrg 1003s # Running: ['/usr/bin/glib-genmarshal'] 1003s # Return code: 0 1003s # Output: 1003s # 1003s # Error: 1003s ok 4 __main__.TestGenmarshal.test_void_boolean 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmperng2bm9 1003s # /tmp/tmperng2bm9/tmpomq68grr.list: VOID:BOOLEAN 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmperng2bm9/tmpomq68grr.list', '--header', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # #include 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # /* VOID:BOOLEAN (/tmp/tmperng2bm9/tmpomq68grr.list:1) */ 1003s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmperng2bm9/tmpomq68grr.list', '--body', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #include 1003s # 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # Error: 1003s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmpigx0gver 1003s # /tmp/tmpigx0gver/tmpth0npt8c.list: VOID:BOOLEAN,INT64 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpigx0gver/tmpth0npt8c.list', '--header', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # #include 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # /* VOID:BOOLEAN,INT64 (/tmp/tmpigx0gver/tmpth0npt8c.list:1) */ 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1003s # GValue *return_value, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint, 1003s # gpointer marshal_data); 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpigx0gver/tmpth0npt8c.list', '--body', '--quiet'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #include 1003s # 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # 1003s # /* VOID:BOOLEAN,INT64 (/tmp/tmpigx0gver/tmpth0npt8c.list:1) */ 1003s # void 1003s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint G_GNUC_UNUSED, 1003s # gpointer marshal_data) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1003s # gboolean arg1, 1003s # gint64 arg2, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1003s # 1003s # g_return_if_fail (n_param_values == 3); 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = g_value_peek_pointer (param_values + 0); 1003s # } 1003s # else 1003s # { 1003s # data1 = g_value_peek_pointer (param_values + 0); 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # g_marshal_value_peek_boolean (param_values + 1), 1003s # g_marshal_value_peek_int64 (param_values + 2), 1003s # data2); 1003s # } 1003s # Error: 1003s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmp8euxyomi 1003s # /tmp/tmp8euxyomi/tmpuv3xaofa.list: VOID:PARAM 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8euxyomi/tmpuv3xaofa.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # /* VOID:PARAM (/tmp/tmp8euxyomi/tmpuv3xaofa.list:1) */ 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1003s # GValue *return_value, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint, 1003s # gpointer marshal_data); 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1003s # GValue *return_value, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types); 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8euxyomi/tmpuv3xaofa.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # 1003s # /* VOID:PARAM (/tmp/tmp8euxyomi/tmpuv3xaofa.list:1) */ 1003s # void 1003s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint G_GNUC_UNUSED, 1003s # gpointer marshal_data) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__PARAM callback; 1003s # 1003s # g_return_if_fail (n_param_values == 2); 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = g_value_peek_pointer (param_values + 0); 1003s # } 1003s # else 1003s # { 1003s # data1 = g_value_peek_pointer (param_values + 0); 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # g_marshal_value_peek_param (param_values + 1), 1003s # data2); 1003s # } 1003s # 1003s # void 1003s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__PARAM callback; 1003s # gpointer arg0; 1003s # va_list args_copy; 1003s # 1003s # va_copy (args_copy, args); 1003s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # arg0 = g_param_spec_ref (arg0); 1003s # va_end (args_copy); 1003s # 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = instance; 1003s # } 1003s # else 1003s # { 1003s # data1 = instance; 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # arg0, 1003s # data2); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # g_param_spec_unref (arg0); 1003s # } 1003s # Error: 1003s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmpm2axyzdd 1003s # /tmp/tmpm2axyzdd/tmpi10nku74.list: VOID:STRING 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpm2axyzdd/tmpi10nku74.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # /* VOID:STRING (/tmp/tmpm2axyzdd/tmpi10nku74.list:1) */ 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1003s # GValue *return_value, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint, 1003s # gpointer marshal_data); 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1003s # GValue *return_value, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types); 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpm2axyzdd/tmpi10nku74.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # 1003s # /* VOID:STRING (/tmp/tmpm2axyzdd/tmpi10nku74.list:1) */ 1003s # void 1003s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint G_GNUC_UNUSED, 1003s # gpointer marshal_data) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__STRING callback; 1003s # 1003s # g_return_if_fail (n_param_values == 2); 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = g_value_peek_pointer (param_values + 0); 1003s # } 1003s # else 1003s # { 1003s # data1 = g_value_peek_pointer (param_values + 0); 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # g_marshal_value_peek_string (param_values + 1), 1003s # data2); 1003s # } 1003s # 1003s # void 1003s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__STRING callback; 1003s # gpointer arg0; 1003s # va_list args_copy; 1003s # 1003s # va_copy (args_copy, args); 1003s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # arg0 = g_strdup (arg0); 1003s # va_end (args_copy); 1003s # 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = instance; 1003s # } 1003s # else 1003s # { 1003s # data1 = instance; 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # arg0, 1003s # data2); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # g_free (arg0); 1003s # } 1003s # Error: 1003s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1003s # glib-genmarshal: /usr/bin/glib-genmarshal 1003s # tmpdir: /tmp/tmpxjf_53wo 1003s # /tmp/tmpxjf_53wo/tmpz1cmhzku.list: VOID:VARIANT 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpxjf_53wo/tmpz1cmhzku.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1003s # 1003s # G_BEGIN_DECLS 1003s # 1003s # /* VOID:VARIANT (/tmp/tmpxjf_53wo/tmpz1cmhzku.list:1) */ 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1003s # GValue *return_value, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint, 1003s # gpointer marshal_data); 1003s # extern 1003s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1003s # GValue *return_value, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types); 1003s # 1003s # 1003s # G_END_DECLS 1003s # 1003s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1003s # Error: 1003s # 1003s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpxjf_53wo/tmpz1cmhzku.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1003s # Return code: 0 1003s # Output: 1003s # /* 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. */ 1003s # #ifdef G_ENABLE_DEBUG 1003s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1003s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1003s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1003s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1003s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1003s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1003s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1003s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1003s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1003s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1003s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1003s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1003s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1003s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1003s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1003s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1003s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1003s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1003s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1003s # #else /* !G_ENABLE_DEBUG */ 1003s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1003s # * Do not access GValues directly in your code. Instead, use the 1003s # * g_value_get_*() functions 1003s # */ 1003s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1003s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1003s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1003s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1003s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1003s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1003s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1003s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1003s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1003s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1003s # #endif /* !G_ENABLE_DEBUG */ 1003s # 1003s # /* VOID:VARIANT (/tmp/tmpxjf_53wo/tmpz1cmhzku.list:1) */ 1003s # void 1003s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # guint n_param_values, 1003s # const GValue *param_values, 1003s # gpointer invocation_hint G_GNUC_UNUSED, 1003s # gpointer marshal_data) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__VARIANT callback; 1003s # 1003s # g_return_if_fail (n_param_values == 2); 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = g_value_peek_pointer (param_values + 0); 1003s # } 1003s # else 1003s # { 1003s # data1 = g_value_peek_pointer (param_values + 0); 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # g_marshal_value_peek_variant (param_values + 1), 1003s # data2); 1003s # } 1003s # 1003s # void 1003s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1003s # GValue *return_value G_GNUC_UNUSED, 1003s # gpointer instance, 1003s # va_list args, 1003s # gpointer marshal_data, 1003s # int n_params, 1003s # GType *param_types) 1003s # { 1003s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1003s # gpointer arg1, 1003s # gpointer data2); 1003s # GCClosure *cc = (GCClosure *) closure; 1003s # gpointer data1, data2; 1003s # GMarshalFunc_VOID__VARIANT callback; 1003s # gpointer arg0; 1003s # va_list args_copy; 1003s # 1003s # va_copy (args_copy, args); 1003s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # arg0 = g_variant_ref_sink (arg0); 1003s # va_end (args_copy); 1003s # 1003s # 1003s # if (G_CCLOSURE_SWAP_DATA (closure)) 1003s # { 1003s # data1 = closure->data; 1003s # data2 = instance; 1003s # } 1003s # else 1003s # { 1003s # data1 = instance; 1003s # data2 = closure->data; 1003s # } 1003s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1003s # 1003s # callback (data1, 1003s # arg0, 1003s # data2); 1003s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1003s # g_variant_unref (arg0); 1003s # } 1003s # Error: 1003s 1..8 1003s ok - glib/genmarshal.py.test 1003s # Running test: glib/power-profile-monitor.test 1003s TAP version 14 1003s # random seed: R02S1396af11233f573590098bcce322c64d 1003s 1..1 1003s # Start of power-profile-monitor tests 1003s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1003s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 1003s ok 1 /power-profile-monitor/default 1003s # End of power-profile-monitor tests 1003s ok - glib/power-profile-monitor.test 1003s # Running test: glib/testfilemonitor.test 1003s TAP version 14 1003s # random seed: R02Sdea77a3572c98c39029db268156d2972 1003s 1..8 1003s # Start of monitor tests 1003s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1003s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1003s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s # Start of file tests 1003s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1003s # End of file tests 1003s # End of monitor tests 1003s ok - glib/testfilemonitor.test 1003s # Running test: glib/trash.test 1003s ok - glib/trash.test 1003s # Running test: glib/macros.test 1003s ok - glib/macros.test 1003s # Running test: glib/spawn-test.test 1003s TAP version 14 1003s # random seed: R02Sfa621237917ada471a9d978246371755 1003s 1..3 1003s # Start of trash tests 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1003s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1003s # File: /tmp/test-trash7BAT52 (parent st_dev: 64769) 1003s # Home: /home/ubuntu (st_dev: 64769) 1003s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1003s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1003s ok 3 /trash/long-filename 1003s # End of trash tests 1003s TAP version 14 1003s # random seed: R02S99df016d3b5141ad88a45e8b0557072f 1003s 1..3 1003s # Start of alignof tests 1003s ok 1 /alignof/fallback 1003s # End of alignof tests 1003s # Start of assert tests 1003s ok 2 /assert/static 1003s # End of assert tests 1003s # Start of struct tests 1003s ok 3 /struct/sizeof_member 1003s # End of struct tests 1003s TAP version 14 1003s # random seed: R02S8eea010fbb1dae580d5bc292c18f94ee 1003s 1..2 1003s # Start of spawn tests 1003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/home 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/cache 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/system-config2 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/config 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/system-data2 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/data 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/state 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_L1TS52/spawn/basics/.dirs/runtime 1003s ok 1 /spawn/basics 1003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/home 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/cache 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/system-config2 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/config 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/system-data2 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/data 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/state 1003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_L1TS52/spawn/stdio-overwrite/.dirs/runtime 1003s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1003s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1003s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1003s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1003s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1003s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1003s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1003s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1003s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1003s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1003s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1003s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1003s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1003s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1003s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1003s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1003s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1003s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1003s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1003s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1003s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1003s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1003s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1003s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1003s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1003s # Fetching GSpawn result with stdin open, stdout open, stderr open 1003s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1003s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1003s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1003s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1003s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1003s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1003s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1003s ok 2 /spawn/stdio-overwrite 1003s # End of spawn tests 1003s ok - glib/spawn-test.test 1003s # Running test: glib/permission.test 1003s TAP version 14 1003s # random seed: R02S0cfad721ae5a0cfd5d101cb20961b340 1003s 1..1 1003s # Start of permission tests 1003s ok 1 /permission/simple 1003s # End of permission tests 1003s ok - glib/permission.test 1003s # Running test: glib/logging.test 1003s TAP version 14 1003s # random seed: R02S191e9b7639c78b20655e9a9edd897ba9 1003s 1..17 1003s # Start of logging tests 1003s ok 1 /logging/default-handler 1003s ok 2 /logging/warnings 1003s ok 3 /logging/fatal-log-mask 1003s # bu-DEBUG: message 1003s # ba-DEBUG: message 1003s # ba-INFO: message 1003s ok 4 /logging/set-handler 1003s ok 5 /logging/print-handler 1003s ok 6 /logging/printerr-handler 1003s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1003s # The Log Message Handler 1003s # 1003s # The Good Fail Message Handler 1003s # 1003s ok 7 /logging/653052 1003s ok 8 /logging/gibberish 1003s # Start of default-handler tests 1003s # Start of subprocess tests 1003s # End of subprocess tests 1003s # End of default-handler tests 1003s # End of logging tests 1003s # Start of structured-logging tests 1003s ok 9 /structured-logging/no-state 1003s ok 10 /structured-logging/some-state 1003s ok 11 /structured-logging/robustness 1003s ok 12 /structured-logging/roundtrip1 1003s ok 13 /structured-logging/roundtrip2 1003s ok 14 /structured-logging/roundtrip3 1003s ok - glib/logging.test 1003s ok 15 /structured-logging/variant1 1003s ok 16 /structured-logging/variant2 1003s ok 17 /structured-logging/set-writer-func-twice 1003s # End of structured-logging tests 1003s # Running test: glib/null-settings-backend.test 1003s ok - glib/null-settings-backend.test 1003s TAP version 14 1003s # random seed: R02Saecd1210b5567e4589fa821bf5fb8223 1003s 1..1 1003s # Start of null-settings-backend tests 1003s ok 1 /null-settings-backend/extension-point-registered 1003s # End of null-settings-backend tests 1003s # Running test: glib/gapplication.test 1003s TAP version 14 1003s # random seed: R02S3e49f6883f60d21287b210e6c2143a8f 1003s 1..24 1003s # Start of gapplication tests 1003s ok 1 /gapplication/no-dbus 1003s ok 2 /gapplication/no-appid 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s ok 3 /gapplication/properties 1003s ok 4 /gapplication/app-id 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s ok 5 /gapplication/quit 1003s ok 6 /gapplication/registered 1003s ok 7 /gapplication/local-actions 1003s ok 8 /gapplication/local-command-line 1003s ok 9 /gapplication/resource-path 1003s ok 10 /gapplication/test-help 1003s ok 11 /gapplication/command-line-done 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s ok 12 /gapplication/test-busy 1003s ok 13 /gapplication/test-handle-local-options1 1003s ok 14 /gapplication/test-handle-local-options2 1003s ok 15 /gapplication/test-handle-local-options3 1003s ok 16 /gapplication/api 1003s ok 17 /gapplication/version 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1003s # launching subprocess 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s ok 18 /gapplication/replace 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1003s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1003s # launching subprocess 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 19 /gapplication/no-replace 1004s # slow test /gapplication/no-replace executed in 0.51 secs 1004s # Start of dbus tests 1004s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1004s # Message 0 1004s # Message 1 1004s # Message 2 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 20 /gapplication/dbus/activate 1004s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1004s # Message 0 1004s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1004s # Message 1 1004s # Message 2 1004s # Message 3 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 21 /gapplication/dbus/open 1004s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1004s # Message 0 1004s # Message 1 1004s # Message 2 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 22 /gapplication/dbus/command-line 1004s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 23 /gapplication/dbus/command-line-done 1004s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1004s # Message 0 1004s # Message 1 1004s # Message 2 1004s # Message 3 1004s # Message 4 1004s # Message 5 1004s # Message 6 1004s # Message 7 1004s # Message 8 1004s # Message 9 1004s # Message 10 1004s # Message 11 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1004s ok 24 /gapplication/dbus/activate-action 1004s # End of dbus tests 1004s # End of gapplication tests 1004s ok - glib/gapplication.test 1004s # Running test: glib/queue.test 1004s TAP version 14 1004s # random seed: R02S28594965c463e61be19c6d98c3e3bac1 1004s 1..12 1004s # Start of queue tests 1004s ok 1 /queue/basic 1004s ok 2 /queue/copy 1004s ok 3 /queue/off-by-one 1004s ok 4 /queue/find-custom 1004s ok 5 /queue/static 1004s ok 6 /queue/clear 1004s ok 7 /queue/free-full 1004s ok 8 /queue/clear-full 1004s ok 9 /queue/insert-sibling-link 1004s ok 10 /queue/push-nth-link 1004s # Start of clear-full tests 1004s ok 11 /queue/clear-full/noop 1004s # End of clear-full tests 1004s # Start of random tests 1004s ok - glib/queue.test 1004s # Running test: glib/hash.test 1004s ok 12 /queue/random/seed:235471724 1004s # End of random tests 1004s # End of queue tests 1004s TAP version 14 1004s # random seed: R02Sc1c6e1779872a5caa3232fb4723b175c 1004s 1..34 1004s # Start of hash tests 1004s ok 1 /hash/misc 1004s ok 2 /hash/one 1004s ok 3 /hash/honeyman 1004s ok 4 /hash/direct 1004s ok 5 /hash/direct2 1004s ok 6 /hash/int 1004s ok 7 /hash/int64 1004s ok 8 /hash/double 1004s ok 9 /hash/string 1004s ok 10 /hash/set 1004s ok 11 /hash/set-ref 1004s ok 12 /hash/ref 1004s ok 13 /hash/remove-all 1004s ok 14 /hash/recursive-remove-all 1004s ok 15 /hash/find 1004s ok 16 /hash/foreach 1004s ok 17 /hash/foreach-steal 1004s ok 18 /hash/steal-extended 1004s ok 19 /hash/steal-all-keys 1004s ok 20 /hash/steal-all-values 1004s ok 21 /hash/lookup-extended 1004s ok 22 /hash/new-similar 1004s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1004s ok 23 /hash/lookup-null-key 1004s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1004s ok 24 /hash/destroy-modify 1004s ok 25 /hash/consistency 1004s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1004s ok 26 /hash/iter-replace 1004s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1004s ok 27 /hash/set-insert-corruption 1004s ok 28 /hash/set-to-strv 1004s ok 29 /hash/get-keys-as-ptr-array 1004s ok 30 /hash/get-values-as-ptr-array 1004s ok 31 /hash/primes 1004s # Start of int64 tests 1004s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1004s ok 32 /hash/int64/collisions 1004s # End of int64 tests 1004s # Start of double tests 1004s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1004s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1004s ok 33 /hash/double/collisions 1004s # End of double tests 1004s # Start of recursive-remove-all tests 1004s # End of recursive-remove-all tests 1004s # Start of steal-extended tests 1004s ok 34 /hash/steal-extended/optional 1004s # End of steal-extended tests 1004s # End of hash tests 1004s ok - glib/hash.test 1004s # Running test: glib/rec-mutex.test 1004s TAP version 14 1004s # random seed: R02Sd22fcc9a2c1d2b53dc328bd08620492a 1004s 1..29 1004s # Start of thread tests 1004s ok 1 /thread/rec-mutex1 1004s ok 2 /thread/rec-mutex2 1004s ok 3 /thread/rec-mutex3 1004s ok 4 /thread/rec-mutex4 1004s # Start of rec-mutex tests 1004s # Start of perf tests 1004s # Start of uncontended tests 1004s # max perf: 1.000000 mips 1004s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1004s # max perf: inf mips 1004s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1004s # max perf: 1.000000 mips 1004s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1004s # max perf: inf mips 1004s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1004s # max perf: inf mips 1004s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1004s # End of uncontended tests 1004s # Start of contended1 tests 1004s # max perf: inf mips 1004s ok 10 /thread/rec-mutex/perf/contended1/depth1 1004s # max perf: 2.000000 mips 1004s ok 11 /thread/rec-mutex/perf/contended1/depth2 1004s # max perf: 2.000000 mips 1004s ok 12 /thread/rec-mutex/perf/contended1/depth3 1004s # max perf: 2.000000 mips 1004s ok 13 /thread/rec-mutex/perf/contended1/depth4 1004s # max perf: 2.000000 mips 1004s ok 14 /thread/rec-mutex/perf/contended1/depth5 1004s # End of contended1 tests 1004s # Start of contended2 tests 1004s # max perf: 3.000000 mips 1004s ok 15 /thread/rec-mutex/perf/contended2/depth1 1004s # max perf: 3.000000 mips 1004s ok 16 /thread/rec-mutex/perf/contended2/depth2 1004s # max perf: 3.000000 mips 1004s ok 17 /thread/rec-mutex/perf/contended2/depth3 1004s # max perf: inf mips 1004s ok 18 /thread/rec-mutex/perf/contended2/depth4 1004s # max perf: 1.500000 mips 1004s ok 19 /thread/rec-mutex/perf/contended2/depth5 1004s # End of contended2 tests 1004s # Start of contended3 tests 1004s # max perf: inf mips 1004s ok 20 /thread/rec-mutex/perf/contended3/depth1 1004s # max perf: 0.666667 mips 1004s ok 21 /thread/rec-mutex/perf/contended3/depth2 1004s # max perf: 4.000000 mips 1004s ok 22 /thread/rec-mutex/perf/contended3/depth3 1004s # max perf: 2.000000 mips 1004s ok 23 /thread/rec-mutex/perf/contended3/depth4 1004s # max perf: 4.000000 mips 1004s ok 24 /thread/rec-mutex/perf/contended3/depth5 1004s # End of contended3 tests 1004s # Start of contended4 tests 1004s # max perf: 1.250000 mips 1004s ok 25 /thread/rec-mutex/perf/contended4/depth1 1004s # max perf: 1.666667 mips 1004s ok 26 /thread/rec-mutex/perf/contended4/depth2 1004s # max perf: 1.250000 mips 1004s ok 27 /thread/rec-mutex/perf/contended4/depth3 1004s # max perf: 5.000000 mips 1004s ok 28 /thread/rec-mutex/perf/contended4/depth4 1004s # max perf: 5.000000 mips 1004s ok 29 /thread/rec-mutex/perf/contended4/depth5 1004s # End of contended4 tests 1004s # End of perf tests 1004s # End of rec-mutex tests 1004s # End of thread tests 1004s ok - glib/rec-mutex.test 1004s # Running test: glib/credentials.test 1004s TAP version 14 1004s # random seed: R02Se7f7cfd6266680e09428afe505b3478a 1004s 1..1 1004s # Start of credentials tests 1004s # GCredentials:linux-ucred:pid=9437,uid=1000,gid=1000 1004s # GCredentials:linux-ucred:pid=9437,uid=0,gid=1000 1004s ok 1 /credentials/basic 1004s # End of credentials tests 1004s ok - glib/credentials.test 1004s # Running test: glib/portal-support-flatpak-none.test 1004s TAP version 14 1004s # random seed: R02S891e1dd5e36685e54076d275667643e5 1004s 1..1 1004s # Start of portal-support tests 1004s # Start of flatpak tests 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/runtime 1004s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_H8O852/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1004s ok 1 /portal-support/flatpak/none 1004s # End of flatpak tests 1004s # End of portal-support tests 1004s ok - glib/portal-support-flatpak-none.test 1004s # Running test: glib/fileutils.test 1004s TAP version 14 1004s # random seed: R02Sa58dd090d0a5d44fd28a716c95a3215b 1004s 1..27 1004s # Start of fileutils tests 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/paths/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/paths/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/paths/.dirs/runtime 1004s ok 1 /fileutils/paths 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/build-path/.dirs/runtime 1004s ok 2 /fileutils/build-path 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/build-pathv/.dirs/runtime 1004s ok 3 /fileutils/build-pathv 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/build-filename/.dirs/runtime 1004s ok 4 /fileutils/build-filename 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/build-filenamev/.dirs/runtime 1004s ok 5 /fileutils/build-filenamev 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents/.dirs/runtime 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s # Checking g_mkdir_with_parents() in subdir ./hum/ 1004s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1004s ok 6 /fileutils/mkdir-with-parents 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/mkdir-with-parents-permission/.dirs/runtime 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s ok 7 /fileutils/mkdir-with-parents-permission 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/format-size-for-display/.dirs/runtime 1004s ok 8 /fileutils/format-size-for-display 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/errors/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/errors/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/errors/.dirs/runtime 1004s ok 9 /fileutils/errors 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/basename/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/basename/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/basename/.dirs/runtime 1004s ok 10 /fileutils/basename 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/get-basename/.dirs/runtime 1004s ok 11 /fileutils/get-basename 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/dirname/.dirs/runtime 1004s ok 12 /fileutils/dirname 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/dir-make-tmp/.dirs/runtime 1004s ok 13 /fileutils/dir-make-tmp 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/file-open-tmp/.dirs/runtime 1004s ok 14 /fileutils/file-open-tmp 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/file-test/.dirs/runtime 1004s ok 15 /fileutils/file-test 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/mkstemp/.dirs/runtime 1004s ok 16 /fileutils/mkstemp 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/mkdtemp/.dirs/runtime 1004s ok 17 /fileutils/mkdtemp 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/get-contents/.dirs/runtime 1004s ok 18 /fileutils/get-contents 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/get-contents-large-file/.dirs/runtime 1004s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/set-contents/.dirs/runtime 1004s ok 20 /fileutils/set-contents 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/.dirs/runtime 1004s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1004s # Flags 0 and test 0 1004s # Flags 0 and test 1 1004s # Flags 0 and test 2 1004s # Flags 0 and test 3 1004s # Flags 0 and test 4 1004s # Flags 0 and test 5 1004s # Flags 1 and test 0 1004s # Flags 1 and test 1 1004s # Flags 1 and test 2 1004s # Flags 1 and test 3 1004s # Flags 1 and test 4 1004s # Flags 1 and test 5 1004s # Flags 2 and test 0 1004s # Flags 2 and test 1 1004s # Flags 2 and test 2 1004s # Flags 2 and test 3 1004s # Flags 2 and test 4 1004s # Flags 2 and test 5 1004s # Flags 3 and test 0 1004s # Flags 3 and test 1 1004s # Flags 3 and test 2 1004s # Flags 3 and test 3 1004s # Flags 3 and test 4 1004s # Flags 3 and test 5 1004s # Flags 4 and test 0 1004s # Flags 4 and test 1 1004s # Flags 4 and test 2 1004s # Flags 4 and test 3 1004s # Flags 4 and test 4 1004s # Flags 4 and test 5 1004s # Flags 5 and test 0 1004s # Flags 5 and test 1 1004s # Flags 5 and test 2 1004s # Flags 5 and test 3 1004s # Flags 5 and test 4 1004s # Flags 5 and test 5 1004s # Flags 6 and test 0 1004s # Flags 6 and test 1 1004s # Flags 6 and test 2 1004s # Flags 6 and test 3 1004s # Flags 6 and test 4 1004s # Flags 6 and test 5 1004s ok 21 /fileutils/set-contents-full 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/read-link/.dirs/runtime 1004s ok 22 /fileutils/read-link 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/stdio-wrappers/.dirs/runtime 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s ok 23 /fileutils/stdio-wrappers 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/fopen-modes/.dirs/runtime 1004s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1004s # Testing fopen() mode 'w' 1004s # Testing fopen() mode 'r' 1004s # Testing fopen() mode 'a' 1004s # Testing fopen() mode 'w+' 1004s # Testing fopen() mode 'r+' 1004s # Testing fopen() mode 'a+' 1004s # Testing fopen() mode 'wb' 1004s # Testing fopen() mode 'rb' 1004s # Testing fopen() mode 'ab' 1004s # Testing fopen() mode 'w+b' 1004s # Testing fopen() mode 'r+b' 1004s # Testing fopen() mode 'a+b' 1004s # Testing fopen() mode 'wb+' 1004s # Testing fopen() mode 'rb+' 1004s # Testing fopen() mode 'ab+' 1004s ok 24 /fileutils/fopen-modes 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/clear-fd/.dirs/runtime 1004s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1004s # Will be closed by autocleanup: 3, -42 1004s # Testing error handling 1004s ok 25 /fileutils/clear-fd 1004s # Start of set-contents-full tests 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-file/.dirs/runtime 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1004s ok 26 /fileutils/set-contents-full/read-only-file 1004s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/home 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/cache 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/config 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/data 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/state 1004s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_SVP852/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1004s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1004s # Flags 0 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s # Flags 1 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s # Flags 2 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1004s # Flags 3 1004s # We do not have CAP_DAC_OVERRIDE or equivalent 1005s # Flags 4 1005s # We do not have CAP_DAC_OVERRIDE or equivalent 1005s # Flags 5 1005s # We do not have CAP_DAC_OVERRIDE or equivalent 1005s # Flags 6 1005s # We do not have CAP_DAC_OVERRIDE or equivalent 1005s ok 27 /fileutils/set-contents-full/read-only-directory 1005s # End of set-contents-full tests 1005s # Start of clear-fd tests 1005s # Start of subprocess tests 1005s # End of subprocess tests 1005s # End of clear-fd tests 1005s # End of fileutils tests 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-6GT352: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-659252: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-A5T352: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-OG9252: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-9AS352: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-0UN352: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852/glib-file-set-contents-full-rodir-L7D352: Directory not empty 1005s Unable to clean up temporary directory /tmp/test_fileutils_SVP852: Directory not empty 1005s ok - glib/fileutils.test 1005s # Running test: glib/pathbuf.test 1005s TAP version 14 1005s # random seed: R02Sc40e1374c2d3e52f05ce6eff125a376f 1005s 1..3 1005s # Start of pathbuf tests 1005s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/home 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/cache 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/system-config2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/config 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/system-data2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/data 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/state 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_KB9352/pathbuf/init/.dirs/runtime 1005s # Initializing empty path buf 1005s # Initializing with empty path 1005s # Initializing with full path 1005s # Initializing with no path 1005s # Allocating GPathBuf on the heap 1005s ok 1 /pathbuf/init 1005s ok - glib/pathbuf.test 1005s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/home 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/cache 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/system-config2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/config 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/system-data2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/data 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/state 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_KB9352/pathbuf/push-pop/.dirs/runtime 1005s # Pushing relative path component 1005s # Pushing absolute path component 1005s # Popping a path component 1005s # Can't pop the last element of a path buffer 1005s ok 2 /pathbuf/push-pop 1005s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/home 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/cache 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/system-config2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/config 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/system-data2 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/data 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/state 1005s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_KB9352/pathbuf/filename-extension/.dirs/runtime 1005s ok 3 /pathbuf/filename-extension 1005s # End of pathbuf tests 1005s # Running test: glib/async-close-output-stream.test 1005s ok - glib/async-close-output-stream.test 1005s TAP version 14 1005s # random seed: R02S4ae0c03c0c47b8f308cd3d70b655f36b 1005s 1..3 1005s # Start of close-async tests 1005s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1005s ok 1 /close-async/without-flush 1005s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1005s ok 2 /close-async/with-flush 1005s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1005s ok 3 /close-async/with-async-flush 1005s # End of close-async tests 1005s # Running test: glib/gsocketclient-slow.test 1005s TAP version 14 1005s # random seed: R02Sf91e3226c86f1156c0fdaf84d17e1710 1005s 1..4 1005s # Start of socket-client tests 1005s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1005s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1005s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x196717228b10 and GSocketClientAsyncConnectData 0x1967172230d0 1005s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1005s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1005s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x19671722c5e0 for GSocketClientAsyncConnectData 0x1967172230d0 1005s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1005s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1005s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1005s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1005s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1005s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1005s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x19671722c5e0 for GSocketClientAsyncConnectData 0x1967172230d0 1005s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1006s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1006s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1006s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1006s ok 1 /socket-client/connection-fail 1006s # slow test /socket-client/connection-fail executed in 1.20 secs 1006s # Start of happy-eyeballs tests 1006s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x19671722b300 and GSocketClientAsyncConnectData 0x19671722bf50 1006s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1006s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1006s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x19671722f560 for GSocketClientAsyncConnectData 0x19671722bf50 1006s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1006s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1006s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1006s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1006s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1006s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1006s ok 2 /socket-client/happy-eyeballs/slow 1006s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1006s # Start of cancellation tests 1006s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x19671722bc30 and GSocketClientAsyncConnectData 0x19671722f9e0 1006s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1006s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1006s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1006s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x19671722b150 and GSocketClientAsyncConnectData 0x19671722f6f0 1006s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1006s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1006s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x19671722f3a0 for GSocketClientAsyncConnectData 0x19671722f6f0 1006s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1007s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1007s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1007s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1007s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1007s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1007s ok - glib/gsocketclient-slow.test 1007s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1007s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1007s # End of cancellation tests 1007s # End of happy-eyeballs tests 1007s # End of socket-client tests 1007s # Running test: glib/gutils-user-database.test 1007s ok - glib/gutils-user-database.test 1007s # Running test: glib/gdbus-server-auth.test 1007s TAP version 14 1007s # random seed: R02S14d1180c9c88af19198e075b770d4659 1007s 1..1 1007s # Start of gutils tests 1007s ok 1 /gutils/get_user_database_entry 1007s # End of gutils tests 1007s TAP version 14 1007s # random seed: R02S32bde3cf2c864c306bfcb49009d1154f 1007s 1..9 1007s # Start of gdbus tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/.dirs/runtime 1007s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-IX5T52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1007s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-IX5T52/dbus-363yq61a 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9457 1007s ok 1 /gdbus/server-auth 1007s # Start of server-auth tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/abstract/.dirs/runtime 1007s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-ZXGS52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1007s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-ZXGS52/dbus-FK08a1vJ 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1007s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1007s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9457 1007s ok 2 /gdbus/server-auth/abstract 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/tcp/.dirs/runtime 1007s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1007s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/.dirs/runtime 1007s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-LK5R52 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1007s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-LK5R52/dbus-HWiEdlqb 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9457 1007s ok 4 /gdbus/server-auth/anonymous 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/.dirs/runtime 1007s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-N3YS52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1007s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-N3YS52/dbus-LxFpR15T 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9457 1007s ok 5 /gdbus/server-auth/external 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/.dirs/runtime 1007s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-ZH5Q52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1007s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1007s # Start of anonymous tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1007s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1007s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1007s # End of anonymous tests 1007s # Start of external tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/external/require-same-user/.dirs/runtime 1007s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-2W7Q52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1007s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FV3T52/gdbus-server-auth-2W7Q52/dbus-xLaylrlW 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s ok - glib/gdbus-server-auth.test 1007s # Running test: glib/bytes.test 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 9457 1007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1007s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1007s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1007s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=9457,uid=1000,gid=1000 1007s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 9457 1007s ok 8 /gdbus/server-auth/external/require-same-user 1007s # End of external tests 1007s # Start of sha1 tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FV3T52/gdbus/server-auth/sha1/tcp/.dirs/runtime 1007s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1007s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1007s # End of sha1 tests 1007s # End of server-auth tests 1007s # End of gdbus tests 1007s TAP version 14 1007s # random seed: R02Sea12a73250a1725783a5a9eb5c9c4583 1007s 1..21 1007s # Start of bytes tests 1007s ok 1 /bytes/new 1007s ok 2 /bytes/new-take 1007s ok 3 /bytes/new-static 1007s ok 4 /bytes/new-with-free-func 1007s ok 5 /bytes/new-from-bytes 1007s ok 6 /bytes/new-from-bytes-slice 1007s ok 7 /bytes/new-from-bytes-shared-ref 1007s ok 8 /bytes/hash 1007s ok 9 /bytes/equal 1007s ok 10 /bytes/compare 1007s ok 11 /bytes/null 1007s ok 12 /bytes/get-region 1007s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1007s ok 13 /bytes/unref-null 1007s # Start of to-data tests 1007s ok 14 /bytes/to-data/transferred 1007s ok 15 /bytes/to-data/two-refs 1007s ok 16 /bytes/to-data/non-malloc 1007s ok 17 /bytes/to-data/different-free-func 1007s # End of to-data tests 1007s # Start of to-array tests 1007s ok 18 /bytes/to-array/transferred 1007s ok 19 /bytes/to-array/two-refs 1007s ok 20 /bytes/to-array/non-malloc 1007s # Start of transferred tests 1007s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1007s ok 21 /bytes/to-array/transferred/oversize 1007s # End of transferred tests 1007s # End of to-array tests 1007s # End of bytes tests 1007s TAP version 14 1007s # random seed: R02S00c90d4d55de8f42cabc81d596713291 1007s 1..5 1007s # Start of callable-info tests 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_G0VR52/callable-info/sync-function/.dirs/runtime 1007s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1007s ok 1 /callable-info/sync-function 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_G0VR52/callable-info/async-function/.dirs/runtime 1007s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1007s ok 2 /callable-info/async-function 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_G0VR52/callable-info/is-method/.dirs/runtime 1007s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1007s ok 3 /callable-info/is-method 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_G0VR52/callable-info/static-method/.dirs/runtime 1007s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1007s ok 4 /callable-info/static-method 1007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/home 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/cache 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/system-config2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/config 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/system-data2 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/data 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/state 1007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_G0VR52/callable-info/static-vfunc/.dirs/runtime 1007s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1007s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1007s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1007s # End of callable-info tests 1007s TAP version 14 1007s # random seed: R02S2473a397afecc8f509b474dcd5d0a996 1007s 1..1 1007s # Start of gobject tests 1007s # Start of refcount tests 1007s # init 0x1ee368935d30 1007s # 1007s # init 0x1ee36892e5a0 1007s # 1007s ok - glib/bytes.test 1007s # Running test: glib/callable-info.test 1007s ok - glib/callable-info.test 1007s # Running test: glib/objects-refcount1.test 1007s # Executing: glib/objects-refcount1.test 1012s # dispose 0x1ee368935d30! 1012s # 1012s # dispose 0x1ee36892e5a0! 1012s # 1012s ok 1 /gobject/refcount/object-basics 1012s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1012s # End of refcount tests 1012s # End of gobject tests 1012s ok - glib/objects-refcount1.test 1012s # Running test: glib/union-info.test 1012s TAP version 14 1012s # random seed: R02S736adf5d5a0692f335042d5bbe819cab 1012s 1..2 1012s # Start of union-info tests 1012s ok - glib/union-info.test 1012s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/home 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/cache 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/system-config1:/tmp/test_union-info_KIFR52/union-info/basic/.dirs/system-config2 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/config 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/system-data1:/tmp/test_union-info_KIFR52/union-info/basic/.dirs/system-data2 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/data 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/state 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_KIFR52/union-info/basic/.dirs/runtime 1012s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1012s # /union-info/basic summary: Test basic properties of GIUnionInfo 1012s ok 1 /union-info/basic 1012s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/home 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/cache 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/system-config1:/tmp/test_union-info_KIFR52/union-info/methods/.dirs/system-config2 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/config 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/system-data1:/tmp/test_union-info_KIFR52/union-info/methods/.dirs/system-data2 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/data 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/state 1012s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_KIFR52/union-info/methods/.dirs/runtime 1012s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1012s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1012s ok 2 /union-info/methods 1012s # End of union-info tests 1012s # Running test: glib/utils-c-99.test 1012s TAP version 14 1012s # random seed: R02S647314266b968ed41ad4df40ff1dc735 1012s 1..41 1012s # Start of utils tests 1012s ok 1 /utils/language-names 1012s ok 2 /utils/locale-variants 1012s ok 3 /utils/version 1012s ok 4 /utils/appname 1012s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1012s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1012s ok 5 /utils/prgname-thread-safety 1012s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1012s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1012s ok 6 /utils/tmpdir 1012s ok 7 /utils/basic_bits 1012s ok 8 /utils/bits 1012s ok 9 /utils/swap 1012s ok 10 /utils/find-program 1012s ok 11 /utils/find-program-for-path 1012s ok 12 /utils/debug 1012s ok 13 /utils/codeset 1012s ok 14 /utils/codeset2 1012s ok 15 /utils/console-charset 1012s ok 16 /utils/gettext 1012s ok 17 /utils/username 1012s ok 18 /utils/realname 1012s ok 19 /utils/hostname 1012s ok 20 /utils/xdgdirs 1012s ok 21 /utils/specialdir 1012s # NAME: Ubuntu 1012s ok 22 /utils/os-info 1012s ok 23 /utils/clear-pointer 1012s ok 24 /utils/clear-pointer-cast 1012s ok 25 /utils/take-pointer 1012s ok 26 /utils/clear-source 1012s ok 27 /utils/misc-mem 1012s # /utils/aligned-mem summary: Aligned memory allocator 1012s # Alignment must not be zero 1012s # Alignment must be a power of two 1012s # Alignment must be a multiple of sizeof(void*) 1012s ok 28 /utils/aligned-mem 1012s # /utils/free-sized summary: Check that g_free_sized() works 1012s ok 29 /utils/free-sized 1012s ok 30 /utils/nullify 1012s ok 31 /utils/atexit 1012s ok 32 /utils/check-setuid 1012s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1012s ok 33 /utils/int-limits 1012s ok 34 /utils/clear-list 1012s ok 35 /utils/clear-slist 1012s ok 36 /utils/steal-handle-id 1012s # Start of specialdir tests 1012s ok - glib/utils-c-99.test 1012s # Running test: glib/list.test 1012s ok - glib/list.test 1012s # Running test: glib/rwlock.test 1012s ok 37 /utils/specialdir/desktop 1012s # End of specialdir tests 1012s # Start of clear-pointer tests 1012s ok 38 /utils/clear-pointer/side-effects 1012s # End of clear-pointer tests 1012s # Start of aligned-mem tests 1012s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1012s ok 39 /utils/aligned-mem/alignment 1012s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1012s ok 40 /utils/aligned-mem/zeroed 1012s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1012s ok 41 /utils/aligned-mem/free-sized 1012s # Start of subprocess tests 1012s # End of subprocess tests 1012s # End of aligned-mem tests 1012s # End of utils tests 1012s TAP version 14 1012s # random seed: R02Sad98f826bf8ddf642445dec987e56a9b 1012s 1..20 1012s # Start of list tests 1012s ok 1 /list/sort 1012s ok 2 /list/sort-with-data 1012s ok 3 /list/insert-before-link 1012s ok 4 /list/insert-sorted 1012s ok 5 /list/insert-sorted-with-data 1012s ok 6 /list/reverse 1012s ok 7 /list/nth 1012s ok 8 /list/concat 1012s ok 9 /list/remove 1012s ok 10 /list/remove-all 1012s ok 11 /list/first-last 1012s ok 12 /list/insert 1012s ok 13 /list/free-full 1012s ok 14 /list/copy 1012s ok 15 /list/copy-deep 1012s ok 16 /list/delete-link 1012s ok 17 /list/prepend 1012s ok 18 /list/position 1012s ok 19 /list/double-free 1012s # Start of sort tests 1012s ok 20 /list/sort/stable 1012s # End of sort tests 1012s # End of list tests 1012s TAP version 14 1012s # random seed: R02Seab572e1d24642928c060ddf95afaa3f 1012s 1..8 1012s # Start of thread tests 1012s ok 1 /thread/rwlock1 1012s ok 2 /thread/rwlock2 1012s ok 3 /thread/rwlock3 1012s ok 4 /thread/rwlock4 1012s ok 5 /thread/rwlock5 1012s ok 6 /thread/rwlock6 1012s # Executing: glib/rwlock.test 1017s # Executing: glib/rwlock.test 1021s ok 7 /thread/rwlock7 1021s # slow test /thread/rwlock7 executed in 9.22 secs 1022s ok 8 /thread/rwlock8 1022s # End of thread tests 1022s ok - glib/rwlock.test 1022s # Running test: glib/simple-proxy.test 1022s TAP version 14 1022s # random seed: R02Sb59c9ee32efe5ef62e6ad38e65a42272 1022s 1..3 1022s # Start of static-proxy tests 1022s ok 1 /static-proxy/uri 1022s ok 2 /static-proxy/socks 1022s ok 3 /static-proxy/ignore 1022s # End of static-proxy tests 1022s ok - glib/simple-proxy.test 1022s # Running test: glib/network-monitor.test 1022s ok - glib/network-monitor.test 1022s # Running test: glib/basic-signals.test 1022s ok - glib/basic-signals.test 1022s # Running test: glib/g-file.test 1022s ok - glib/g-file.test 1022s # Running test: glib/socket-address.test 1022s ok - glib/socket-address.test 1022s # Running test: glib/stream-rw_all.test 1022s TAP version 14 1022s # random seed: R02S3c9dae6955b5950225294ef7a0e8a7f7 1022s 1..4 1022s # Start of network-monitor tests 1022s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1022s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1022s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 1022s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1022s ok 1 /network-monitor/default 1022s ok 2 /network-monitor/remove_default 1022s ok 3 /network-monitor/add_networks 1022s ok 4 /network-monitor/remove_networks 1022s # End of network-monitor tests 1022s TAP version 14 1022s # random seed: R02S1713de2a46f7f77af26741fd7814541e 1022s 1..1 1022s # Start of gobject tests 1022s ok 1 /gobject/basic-signals 1022s # End of gobject tests 1022s TAP version 14 1022s # random seed: R02S3e2a3dab29544e209aa17e6a481d66d8 1022s 1..8 1022s # Start of g-file tests 1022s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1022s ok 1 /g-file/test_g_file_new_null 1022s ok 2 /g-file/test_g_file_new_for_path 1022s ok 3 /g-file/test_g_file_new_for_uri 1022s ok 4 /g-file/test_g_file_dup 1022s ok 5 /g-file/test_g_file_get_parse_name_utf8 1022s file:///tmp/test-tmp-glib_g-file.test-98P152 1022s file:///tmp 1022s file:///tmp 1022s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1022s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1022s ok 6 /g-file/test_g_file_new_for_commandline_arg 1022s /dir1 /dir1/dir2/dir3/ 1022s /dir1/ /dir1/dir2/dir3/ 1022s /dir1 /dir1/dir2/dir3 1022s /dir1/ /dir1/dir2/dir3 1022s /tmp/ /something/ 1022s /dir1/dir2 /dir1/ 1022s //dir1/new //dir1/new/dir2/dir3 1022s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 1022s file:///dir1 file:///dir1/dir2/dir3/ 1022s file:///dir1/ file:///dir1/dir2/dir3/ 1022s file:///dir1 file:///dir1/dir2/dir3 1022s file:///dir1/ file:///dir1/dir2/dir3 1022s file:///tmp/ file:///something/ 1022s file:///dir1/dir2 file:///dir1/ 1022s file:////dir1/new file:////dir1/new/dir2/dir3 1022s 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 1022s ok 7 /g-file/test_g_file_has_prefix 1022s ok 8 /g-file/test_g_file_get_parent_child 1022s # End of g-file tests 1022s TAP version 14 1022s # random seed: R02S761c24877cf1816a20e8f21d67de3fe6 1022s 1..2 1022s # Start of socket tests 1022s # Start of address tests 1022s # Start of unix tests 1022s ok 1 /socket/address/unix/construct 1022s ok 2 /socket/address/unix/to-string 1022s # End of unix tests 1022s # End of address tests 1022s # End of socket tests 1022s TAP version 14 1022s # random seed: R02Sb02d9b3adf34c65f1e8383155d2fe23f 1022s 1..3 1022s # Start of stream tests 1022s # Start of read_all_async tests 1022s ok 1 /stream/read_all_async/memory 1022s # End of read_all_async tests 1022s # Start of write_all_async tests 1022s ok 2 /stream/write_all_async/memory 1022s # End of write_all_async tests 1022s # Start of read_write_all_async tests 1022s ok 3 /stream/read_write_all_async/pipe 1022s # End of read_write_all_async tests 1022s # End of stream tests 1022s ok - glib/stream-rw_all.test 1022s # Running test: glib/override.test 1022s TAP version 14 1022s # random seed: R02Sa1a217456810e31cf0f0c363c7b639fe 1022s 1..1 1022s # Start of gobject tests 1022s # *** emitting foo on a TestA instance 1022s # Expecting: TestA::foo,TestI::foo 1022s # Got: TestA::foo,TestI::foo 1022s # *** emitting bar on a TestA instance 1022s # Expecting: TestA::bar 1022s # Got: TestA::bar 1022s # *** emitting baz on a TestA instance 1022s # Expecting: TestA::baz 1022s # Got: TestA::baz 1022s # *** emitting foo on a TestB instance 1022s # Expecting: TestB::foo,TestA::foo,TestI::foo 1022s # Got: TestB::foo,TestA::foo,TestI::foo 1022s # *** emitting bar on a TestB instance 1022s # Expecting: TestB::bar,TestA::bar 1022s # Got: TestB::bar,TestA::bar 1022s # *** emitting baz on a TestB instance 1022s # Expecting: TestB::baz,TestA::baz 1022s # Got: TestB::baz,TestA::baz 1022s # *** emitting foo on a TestC instance 1022s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1022s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1022s # *** emitting bar on a TestC instance 1022s # Expecting: TestC::bar,TestB::bar,TestA::bar 1022s # Got: TestC::bar,TestB::bar,TestA::bar 1022s # *** emitting baz on a TestC instance 1022s # Expecting: TestC::baz,TestB::baz,TestA::baz 1022s # Got: TestC::baz,TestB::baz,TestA::baz 1022s ok 1 /gobject/override 1022s # End of gobject tests 1022s ok - glib/override.test 1022s # Running test: glib/unix-mounts.test 1022s TAP version 14 1022s # random seed: R02S71c7f787cc50a15a3cb41af5768355ed 1022s 1..4 1022s # Start of unix-mounts tests 1022s ok 1 /unix-mounts/is-system-fs-type 1022s ok 2 /unix-mounts/is-system-device-path 1022s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1022s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1022s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1022s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1022s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1022s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1022s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1022s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1022s ok - glib/unix-mounts.test 1022s # Running test: glib/file.test 1022s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1022s ok 3 /unix-mounts/get-mount-points 1022s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1022s ok 4 /unix-mounts/get-mount-entries 1022s # End of unix-mounts tests 1022s TAP version 14 1022s # random seed: R02S343edbdc17772beeb83aeab176cb4e64 1022s 1..55 1022s # Start of file tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/basic/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/basic/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/basic/.dirs/system-config1:/tmp/test_file_B4UZ52/file/basic/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/basic/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/basic/.dirs/system-data1:/tmp/test_file_B4UZ52/file/basic/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/basic/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/basic/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/basic/.dirs/runtime 1022s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1022s ok 1 /file/basic 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/build-filename/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/build-filename/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/build-filename/.dirs/system-config1:/tmp/test_file_B4UZ52/file/build-filename/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/build-filename/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/build-filename/.dirs/system-data1:/tmp/test_file_B4UZ52/file/build-filename/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/build-filename/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/build-filename/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/build-filename/.dirs/runtime 1022s ok 2 /file/build-filename 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/system-config1:/tmp/test_file_B4UZ52/file/build-filenamev/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/system-data1:/tmp/test_file_B4UZ52/file/build-filenamev/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/build-filenamev/.dirs/runtime 1022s ok 3 /file/build-filenamev 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/parent/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/parent/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/parent/.dirs/system-config1:/tmp/test_file_B4UZ52/file/parent/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/parent/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/parent/.dirs/system-data1:/tmp/test_file_B4UZ52/file/parent/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/parent/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/parent/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/parent/.dirs/runtime 1022s ok 4 /file/parent 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/child/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/child/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/child/.dirs/system-config1:/tmp/test_file_B4UZ52/file/child/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/child/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/child/.dirs/system-data1:/tmp/test_file_B4UZ52/file/child/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/child/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/child/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/child/.dirs/runtime 1022s ok 5 /file/child 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/empty-path/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/empty-path/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/empty-path/.dirs/system-config1:/tmp/test_file_B4UZ52/file/empty-path/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/empty-path/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/empty-path/.dirs/system-data1:/tmp/test_file_B4UZ52/file/empty-path/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/empty-path/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/empty-path/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/empty-path/.dirs/runtime 1022s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1022s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1022s ok 6 /file/empty-path 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/type/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/type/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/type/.dirs/system-config1:/tmp/test_file_B4UZ52/file/type/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/type/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/type/.dirs/system-data1:/tmp/test_file_B4UZ52/file/type/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/type/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/type/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/type/.dirs/runtime 1022s ok 7 /file/type 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/parse-name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/parse-name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/parse-name/.dirs/system-config1:/tmp/test_file_B4UZ52/file/parse-name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/parse-name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/parse-name/.dirs/system-data1:/tmp/test_file_B4UZ52/file/parse-name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/parse-name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/parse-name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/parse-name/.dirs/runtime 1022s ok 8 /file/parse-name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace-load/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace-load/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace-load/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace-load/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace-load/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace-load/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace-load/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace-load/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace-load/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace-load/.dirs/runtime 1022s ok 9 /file/replace-load 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace-cancel/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace-cancel/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace-cancel/.dirs/runtime 1022s # Bug Reference: https://bugzilla.gnome.org/629301 1022s ok 10 /file/replace-cancel 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace-symlink/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace-symlink/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace-symlink/.dirs/runtime 1022s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1022s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1022s # Using temporary directory /tmp/test_file_B4UZ52/g_file_replace_symlink_CF1X52 1022s ok 11 /file/replace-symlink 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-new-tmp/.dirs/runtime 1022s ok 12 /file/async-new-tmp 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-new-tmp-dir/.dirs/runtime 1022s ok 13 /file/async-new-tmp-dir 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-delete/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-delete/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-delete/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-delete/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-delete/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-delete/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-delete/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-delete/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-delete/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-delete/.dirs/runtime 1022s ok 14 /file/async-delete 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-make-symlink/.dirs/runtime 1022s ok 15 /file/async-make-symlink 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/copy-preserve-mode/.dirs/runtime 1022s # Current umask: 2 1022s # Vector 0 1022s # Vector 1 1022s # Vector 2 1022s # Vector 3 1022s # Vector 4 1022s # Vector 5 1022s # Vector 6 1022s # Vector 7 1022s # Vector 8 1022s # Vector 9 1022s # Vector 10 1022s ok 16 /file/copy-preserve-mode 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/copy-async-with-closures/.dirs/runtime 1022s ok 17 /file/copy-async-with-closures 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/measure/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/measure/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/measure/.dirs/system-config1:/tmp/test_file_B4UZ52/file/measure/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/measure/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/measure/.dirs/system-data1:/tmp/test_file_B4UZ52/file/measure/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/measure/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/measure/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/measure/.dirs/runtime 1022s ok 18 /file/measure 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/measure-async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/measure-async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/measure-async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/measure-async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/measure-async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/measure-async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/measure-async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/measure-async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/measure-async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/measure-async/.dirs/runtime 1022s ok 19 /file/measure-async 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/system-config1:/tmp/test_file_B4UZ52/file/load-bytes/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/system-data1:/tmp/test_file_B4UZ52/file/load-bytes/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/load-bytes/.dirs/runtime 1022s ok 20 /file/load-bytes 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/load-bytes-async/.dirs/runtime 1022s ok 21 /file/load-bytes-async 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/load-bytes-4gb/.dirs/runtime 1022s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/load-contents-4gb/.dirs/runtime 1022s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/load-contents-4gb-async/.dirs/runtime 1022s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/.dirs/runtime 1022s ok 25 /file/writev 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/build-attribute-list-for-copy/.dirs/runtime 1022s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1022s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1022s # 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::* 1022s # 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::* 1022s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1022s # Attributes for copy: standard::size,xattr::* 1022s # Attributes for copy: standard::size,unix::mode,xattr::* 1022s ok 26 /file/build-attribute-list-for-copy 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/move_async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/move_async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/move_async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/move_async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/move_async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/move_async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/move_async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/move_async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/move_async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/move_async/.dirs/runtime 1022s ok 27 /file/move_async 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/move-async-with-closures/.dirs/runtime 1022s ok 28 /file/move-async-with-closures 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/query-zero-length-content-type/.dirs/runtime 1022s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1022s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1022s ok 29 /file/query-zero-length-content-type 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/runtime 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/data/applications 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/config 1022s ok 30 /file/query-default-handler-file 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/runtime 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/data/applications 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config 1022s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_B4UZ52/file/query-default-handler-file/.dirs/config to /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config 1022s ok 31 /file/query-default-handler-file-async 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/runtime 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/data/applications 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config 1022s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_B4UZ52/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config 1022s ok 32 /file/query-default-handler-uri 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/runtime 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/data/applications 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/config 1022s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_B4UZ52/file/query-default-handler-uri/.dirs/config to /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/config 1022s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_B4UZ52/file/query-default-handler-uri-async/.dirs/config 1022s ok 33 /file/query-default-handler-uri-async 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/enumerator-cancellation/.dirs/runtime 1022s ok 34 /file/enumerator-cancellation 1022s # Start of async-create-delete tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-create-delete/0/.dirs/runtime 1022s ok 35 /file/async-create-delete/0 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-create-delete/1/.dirs/runtime 1022s ok 36 /file/async-create-delete/1 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-create-delete/10/.dirs/runtime 1022s ok 37 /file/async-create-delete/10 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-create-delete/25/.dirs/runtime 1022s ok 38 /file/async-create-delete/25 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/async-create-delete/4096/.dirs/runtime 1022s ok 39 /file/async-create-delete/4096 1022s # End of async-create-delete tests 1022s # Start of replace-symlink tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace-symlink/using-etag/.dirs/runtime 1022s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1022s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1022s # Using temporary directory /tmp/test_file_B4UZ52/g_file_replace_symlink_using_etag_KB6B62 1022s # Executing: glib/file.test 1024s ok 40 /file/replace-symlink/using-etag 1024s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1024s # End of replace-symlink tests 1024s # Start of replace tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace/write-only/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace/write-only/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace/write-only/.dirs/runtime 1024s # /file/replace/write-only summary: Test various situations for g_file_replace() 1024s # Current umask: 2 1024s # Test 0, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_YZMB62 1024s # Test 1, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_JULB62 1024s # Test 2, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_OBPB62 1024s # Test 3, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_WFSB62 1024s # Test 4, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_AMSB62 1024s # Test 5, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_J7UB62 1024s # Test 6, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_73WB62 1024s # Test 7, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_0GQC62 1024s # Test 8, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_0RPC62 1024s # Test 9, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_YTRC62 1024s # Test 10, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_ZZSC62 1024s # Test 11, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_GOVC62 1024s # Test 12, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_A3VC62 1024s # Test 13, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_J3XC62 1024s # Test 14, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_KYBC62 1024s # Test 15, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_B8EC62 1024s # Test 16, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_ZHGC62 1024s # Test 17, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_U7IC62 1024s # Test 18, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_PHMC62 1024s # Test 19, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_LCOA62 1024s # Test 20, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_2QSA62 1024s # Test 21, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_KTVA62 1024s # Test 22, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_2X9952 1024s # Test 23, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_WM9952 1024s # Test 24, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_X1AA62 1024s # Test 25, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_88DA62 1024s # Test 26, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_H6FA62 1024s # Test 27, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_8LGA62 1024s # Test 28, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_VFJA62 1024s # Test 29, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_DCAB62 1024s # Test 30, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_FPAB62 1024s # Test 31, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_SFAB62 1024s # Test 32, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_KDDB62 1024s # Test 33, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_S1DB62 1024s # Test 34, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_OEEB62 1024s # Test 35, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_L1GB62 1024s # Test 36, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_JUJB62 1024s # Test 37, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_1WKB62 1024s # Test 38, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_J8XA62 1024s # Test 39, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_7N1A62 1024s # Test 40, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_TB5A62 1024s # Test 41, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_RR6A62 1024s # Test 42, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_IF5852 1024s # Test 43, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_CR9852 1024s # Test 44, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_J7C952 1024s # Test 45, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_X1B952 1024s # Test 46, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_ISF952 1024s # Test 47, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_58F952 1024s # Test 48, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_LPT852 1024s # We do not have CAP_DAC_OVERRIDE or equivalent 1024s ok 41 /file/replace/write-only 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/system-config1:/tmp/test_file_B4UZ52/file/replace/read-write/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/system-data1:/tmp/test_file_B4UZ52/file/replace/read-write/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/replace/read-write/.dirs/runtime 1024s # /file/replace/read-write summary: Test various situations for g_file_replace() 1024s # Current umask: 2 1024s # Test 0, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_OXS852 1024s # Test 1, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_JGT852 1024s # Test 2, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_ZWV852 1024s # Test 3, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_CPZ852 1024s # Test 4, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_1M1852 1024s # Test 5, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_111852 1024s # Test 6, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_J04852 1024s # Test 7, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_G3W952 1024s # Test 8, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_5KW952 1024s # Test 9, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_KAW952 1024s # Test 10, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_EQZ952 1024s # Test 11, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_SX3952 1024s # Test 12, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_CQ2952 1024s # Test 13, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_S52952 1024s # Test 14, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_C85952 1024s # Test 15, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_VMJ952 1024s # Test 16, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_36N952 1024s # Test 17, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_IOP952 1024s # Test 18, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_1JQ952 1024s # Test 19, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_OIU952 1024s # Test 20, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_HIT752 1024s # Test 21, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_0EU752 1024s # Test 22, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_XBX752 1024s # Test 23, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_RTX752 1024s # Test 24, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_1L1752 1024s # Test 25, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_NC2752 1024s # Test 26, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_G1E752 1024s # Test 27, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_OGF752 1024s # Test 28, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_0CI752 1024s # Test 29, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_B3K752 1024s # Test 30, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_UZM752 1024s # Test 31, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_WIN752 1024s # Test 32, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_T9P752 1024s # Test 33, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_JVI852 1024s # Test 34, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_A7I852 1024s # Test 35, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_L1H852 1024s # Test 36, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_AKL852 1024s # Test 37, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_SZR852 1024s # Test 38, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_3H5752 1024s # Test 39, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_EY8752 1024s # Test 40, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_ERB852 1024s # Test 41, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_5GF852 1024s # Test 42, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_M2E652 1024s # Test 43, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_0TF652 1024s # Test 44, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_57I652 1024s # Test 45, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_M6K652 1024s # Test 46, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_2CO652 1024s # Test 47, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_RTO652 1024s # Test 48, using temporary directory /tmp/test_file_B4UZ52/g_file_replace_R41552 1024s # We do not have CAP_DAC_OVERRIDE or equivalent 1024s ok 42 /file/replace/read-write 1024s # End of replace tests 1024s # Start of copy tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/system-config1:/tmp/test_file_B4UZ52/file/copy/progress/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/system-data1:/tmp/test_file_B4UZ52/file/copy/progress/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/copy/progress/.dirs/runtime 1024s ok 43 /file/copy/progress 1024s # End of copy tests 1024s # Start of writev tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/no-bytes-written/.dirs/runtime 1024s ok 44 /file/writev/no-bytes-written 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/no-vectors/.dirs/runtime 1024s ok 45 /file/writev/no-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/empty-vectors/.dirs/runtime 1024s ok 46 /file/writev/empty-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/too-big-vectors/.dirs/runtime 1024s ok 47 /file/writev/too-big-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async/.dirs/runtime 1024s ok 48 /file/writev/async 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async_all/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async_all/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async_all/.dirs/runtime 1024s ok 49 /file/writev/async_all 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async_all-empty-vectors/.dirs/runtime 1024s ok 50 /file/writev/async_all-empty-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async_all-no-vectors/.dirs/runtime 1024s ok 51 /file/writev/async_all-no-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async_all-to-big-vectors/.dirs/runtime 1024s ok 52 /file/writev/async_all-to-big-vectors 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/writev/async_all-cancellation/.dirs/runtime 1024s ok 53 /file/writev/async_all-cancellation 1024s # End of writev tests 1024s # Start of from-uri tests 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/config 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/from-uri/ignores-query-string/.dirs/runtime 1024s ok 54 /file/from-uri/ignores-query-string 1024s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/home 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/cache 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/system-config2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/config 1024s ok - glib/file.test 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/system-data2 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/data 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/state 1024s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_B4UZ52/file/from-uri/ignores-fragment/.dirs/runtime 1024s ok 55 /file/from-uri/ignores-fragment 1024s # End of from-uri tests 1024s # End of file tests 1024s # Running test: glib/timeout.test 1024s TAP version 14 1024s # random seed: R02S3813b87feca37609f3d22b3500c0ade3 1024s 1..5 1024s # Start of timeout tests 1024s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1026s ok 1 /timeout/seconds 1026s # slow test /timeout/seconds executed in 2.10 secs 1027s # Executing: glib/timeout.test 1029s ok 2 /timeout/seconds-once 1029s # slow test /timeout/seconds-once executed in 2.10 secs 1029s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1031s ok 3 /timeout/weeks-overflow 1031s # slow test /timeout/weeks-overflow executed in 2.10 secs 1031s ok 4 /timeout/far-future-ready-time 1032s # Executing: glib/timeout.test 1037s # Executing: glib/timeout.test 1041s ok 5 /timeout/rounding 1041s # slow test /timeout/rounding executed in 10.78 secs 1041s # End of timeout tests 1041s ok - glib/timeout.test 1041s # Running test: glib/cxx.test 1041s TAP version 14 1041s # random seed: R02S0911ec3014197a3c0fe12eb1f3209398 1041s 1..2 1041s # Start of gtask tests 1041s # 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. 1041s ok 1 /gtask/name 1041s # Start of name tests 1041s # 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. 1041s ok 2 /gtask/name/macro-wrapper 1041s # End of name tests 1041s # End of gtask tests 1041s ok - glib/cxx.test 1041s # Running test: glib/strfuncs.test 1041s TAP version 14 1041s # random seed: R02S7677176675e8fa82bfeb423a8581249e 1041s 1..51 1041s # Start of strfuncs tests 1042s ok - glib/strfuncs.test 1042s # Running test: glib/power-profile-monitor-dbus.test 1042s ok 1 /strfuncs/ascii-strcasecmp 1042s ok 2 /strfuncs/ascii_strdown 1042s ok 3 /strfuncs/ascii_strdup 1042s ok 4 /strfuncs/ascii_strtod 1042s ok 5 /strfuncs/bounds-check 1042s ok 6 /strfuncs/has-prefix 1042s ok 7 /strfuncs/has-prefix-macro 1042s ok 8 /strfuncs/has-suffix 1042s ok 9 /strfuncs/has-suffix-macro 1042s ok 10 /strfuncs/memdup 1042s ok 11 /strfuncs/memdup2 1042s ok 12 /strfuncs/set_str 1042s ok 13 /strfuncs/stpcpy 1042s ok 14 /strfuncs/str_match_string 1042s ok 15 /strfuncs/str_tokenize_and_fold 1042s ok 16 /strfuncs/strcanon 1042s ok 17 /strfuncs/strchomp 1042s ok 18 /strfuncs/strchug 1042s ok 19 /strfuncs/strcompress-strescape 1042s ok 20 /strfuncs/strconcat 1042s ok 21 /strfuncs/strdelimit 1042s ok 22 /strfuncs/strdup 1042s ok 23 /strfuncs/strdup-printf 1042s ok 24 /strfuncs/strdupv 1042s ok 25 /strfuncs/strerror 1042s ok 26 /strfuncs/strip-context 1042s ok 27 /strfuncs/strjoin 1042s ok 28 /strfuncs/strjoinv 1042s ok 29 /strfuncs/strlcat 1042s ok 30 /strfuncs/strlcpy 1042s ok 31 /strfuncs/strncasecmp 1042s ok 32 /strfuncs/strndup 1042s ok 33 /strfuncs/strnfill 1042s ok 34 /strfuncs/strreverse 1042s ok 35 /strfuncs/strsignal 1042s ok 36 /strfuncs/strsplit 1042s ok 37 /strfuncs/strsplit-set 1042s ok 38 /strfuncs/strstr 1042s ok 39 /strfuncs/strtod 1042s ok 40 /strfuncs/strtoull-strtoll 1042s ok 41 /strfuncs/strup 1042s ok 42 /strfuncs/strv-contains 1042s ok 43 /strfuncs/strv-equal 1042s ok 44 /strfuncs/strv-length 1042s ok 45 /strfuncs/test-is-to-digit 1042s ok 46 /strfuncs/transliteration 1042s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1042s ok 47 /strfuncs/str-equal 1042s ok 48 /strfuncs/str-is-ascii 1042s # Start of ascii-string-to-num tests 1042s ok 49 /strfuncs/ascii-string-to-num/pathological 1042s ok 50 /strfuncs/ascii-string-to-num/usual 1042s # End of ascii-string-to-num tests 1042s # Start of strdup tests 1042s ok 51 /strfuncs/strdup/inline 1042s # End of strdup tests 1042s # End of strfuncs tests 1042s TAP version 13 1042s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1042s 1..1 1042s ok - glib/power-profile-monitor-dbus.test 1042s # Running test: glib/error.test 1042s ok - glib/error.test 1042s TAP version 14 1042s # random seed: R02S473ce962d7c2f34ecde757b654bf0907 1042s 1..3 1042s # Start of error tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_52RU52/error/from-errno/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_52RU52/error/from-errno/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_52RU52/error/from-errno/.dirs/system-config1:/tmp/test_error_52RU52/error/from-errno/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_52RU52/error/from-errno/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_52RU52/error/from-errno/.dirs/system-data1:/tmp/test_error_52RU52/error/from-errno/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_52RU52/error/from-errno/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_52RU52/error/from-errno/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_52RU52/error/from-errno/.dirs/runtime 1042s ok 1 /error/from-errno 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_52RU52/error/from-file-error/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_52RU52/error/from-file-error/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_52RU52/error/from-file-error/.dirs/system-config1:/tmp/test_error_52RU52/error/from-file-error/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_52RU52/error/from-file-error/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_52RU52/error/from-file-error/.dirs/system-data1:/tmp/test_error_52RU52/error/from-file-error/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_52RU52/error/from-file-error/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_52RU52/error/from-file-error/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_52RU52/error/from-file-error/.dirs/runtime 1042s ok 2 /error/from-file-error 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_52RU52/error/from-win32-error/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_52RU52/error/from-win32-error/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_52RU52/error/from-win32-error/.dirs/system-config1:/tmp/test_error_52RU52/error/from-win32-error/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_52RU52/error/from-win32-error/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_52RU52/error/from-win32-error/.dirs/system-data1:/tmp/test_error_52RU52/error/from-win32-error/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_52RU52/error/from-win32-error/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_52RU52/error/from-win32-error/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_52RU52/error/from-win32-error/.dirs/runtime 1042s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1042s # End of error tests 1042s # Running test: glib/gobject-query.py.test 1042s TAP version 13 1042s ok 1 __main__.TestGobjectQuery.test_froots 1042s # gobject-query: /usr/bin/gobject-query 1042s # tmpdir: /tmp/tmpwpq5lkdr 1042s # Running: ['/usr/bin/gobject-query', 'froots'] 1042s # Return code: 0 1042s # Output: 1042s # ├void 1042s # ├GInterface 1042s # │ â””GTypePlugin 1042s # ├gchar 1042s # ├guchar 1042s # ├gboolean 1042s # ├gint 1042s # ├guint 1042s # ├glong 1042s # ├gulong 1042s # ├gint64 1042s # ├guint64 1042s # ├GEnum 1042s # ├GFlags 1042s # ├gfloat 1042s # ├gdouble 1042s # ├gchararray 1042s # ├gpointer 1042s # │ â””GType 1042s # ├GBoxed 1042s # │ â””GValueArray 1042s # ├GParam 1042s # │ ├GParamChar 1042s # │ ├GParamUChar 1042s # │ ├GParamBoolean 1042s # │ ├GParamInt 1042s # │ ├GParamUInt 1042s # │ ├GParamLong 1042s # │ ├GParamULong 1042s # │ ├GParamInt64 1042s # │ ├GParamUInt64 1042s # │ ├GParamUnichar 1042s # │ ├GParamEnum 1042s # │ ├GParamFlags 1042s # │ ├GParamFloat 1042s # │ ├GParamDouble 1042s # │ ├GParamString 1042s # │ ├GParamParam 1042s # │ ├GParamBoxed 1042s # │ ├GParamPointer 1042s # │ ├GParamValueArray 1042s # │ ├GParamObject 1042s # │ ├GParamOverride 1042s # │ ├GParamGType 1042s # │ â””GParamVariant 1042s # ├GObject 1042s # â””GVariant 1042s # Error: 1042s ok 2 __main__.TestGobjectQuery.test_help 1042s # gobject-query: /usr/bin/gobject-query 1042s # tmpdir: /tmp/tmpno4juhpr 1042s # Running: ['/usr/bin/gobject-query', '--help'] 1042s # Return code: 0 1042s # Output: 1042s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1042s # -r specify root type 1042s # -n don't descend type tree 1042s # -h show help 1042s # -b specify indent string 1042s # -i specify incremental indent string 1042s # -s specify line spacing 1042s # qualifiers: 1042s # froots iterate over fundamental roots 1042s # tree print type tree 1042s # Error: 1042s ok 3 __main__.TestGobjectQuery.test_tree 1042s # gobject-query: /usr/bin/gobject-query 1042s # tmpdir: /tmp/tmpj5_0rc0d 1042s # Running: ['/usr/bin/gobject-query', 'tree'] 1042s # Return code: 0 1042s # Output: 1042s # GObject 1042s # Error: 1042s ok 4 __main__.TestGobjectQuery.test_version 1042s # gobject-query: /usr/bin/gobject-query 1042s # tmpdir: /tmp/tmpdcsmnuhj 1042s # Running: ['/usr/bin/gobject-query', '--version'] 1042s # Return code: 0 1042s # Output: 1042s # 2.84.1 1042s # Error: 1042s 1..4 1042s ok - glib/gobject-query.py.test 1042s # Running test: glib/sort.test 1042s TAP version 14 1042s # random seed: R02S464a81c549229bb7733b8aa3e1dd7eac 1042s 1..5 1042s # Start of sort tests 1042s ok 1 /sort/basic 1042s ok 2 /sort/zero-elements 1042s ok 3 /sort/stable 1042s ok 4 /sort/big 1042s ok 5 /sort/deprecated 1042s # End of sort tests 1042s ok - glib/sort.test 1042s # Running test: glib/overflow-fallback.test 1042s TAP version 14 1042s # random seed: R02Sc566fd500a2009506e8b2db85e3d94a6 1042s 1..6 1042s # Start of glib tests 1042s # Start of checked-math tests 1042s ok 1 /glib/checked-math/guint-add 1042s ok - glib/overflow-fallback.test 1042s # Running test: glib/autoptr-girepository.test 1042s ok 2 /glib/checked-math/guint-mul 1042s ok 3 /glib/checked-math/guint64-add 1042s ok 4 /glib/checked-math/guint64-mul 1042s ok 5 /glib/checked-math/gsize-add 1042s ok 6 /glib/checked-math/gsize-mul 1042s # End of checked-math tests 1042s # End of glib tests 1042s TAP version 14 1042s # random seed: R02S0f63279753d513355b9533fd8a3f2305 1042s 1..24 1042s # Start of autoptr tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/repository/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 1 /autoptr/repository 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/typelib/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 2 /autoptr/typelib 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/base-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 3 /autoptr/base-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/arg-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 4 /autoptr/arg-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/callable-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 5 /autoptr/callable-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/callback-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 6 /autoptr/callback-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/constant-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 7 /autoptr/constant-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/enum-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 8 /autoptr/enum-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/field-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 9 /autoptr/field-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/flags-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 10 /autoptr/flags-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/function-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 11 /autoptr/function-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/interface-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 12 /autoptr/interface-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/object-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 13 /autoptr/object-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/property-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 14 /autoptr/property-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/registered-type-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 15 /autoptr/registered-type-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/signal-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 16 /autoptr/signal-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/struct-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 17 /autoptr/struct-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/type-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 18 /autoptr/type-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/union-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 19 /autoptr/union-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/value-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 20 /autoptr/value-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/autoptr/vfunc-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 21 /autoptr/vfunc-info 1042s # End of autoptr tests 1042s # Start of auto tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/auto/arg-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 22 /auto/arg-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/data 1042s ok - glib/autoptr-girepository.test 1042s # Running test: glib/memory-output-stream.test 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/auto/type-info/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 23 /auto/type-info 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0HHU52/auto/function-invoker/.dirs/runtime 1042s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1042s ok 24 /auto/function-invoker 1042s # End of auto tests 1042s TAP version 14 1042s ok - glib/memory-output-stream.test 1042s # Running test: glib/gdbus-exit-on-close.test 1042s # random seed: R02S0abfe302ad6c784274e6fa24658dda5b 1042s 1..10 1042s # Start of memory-output-stream tests 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1042s ok 1 /memory-output-stream/truncate 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1042s ok 2 /memory-output-stream/get-data-size 1042s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1042s ok 3 /memory-output-stream/properties 1042s ok 4 /memory-output-stream/write-bytes 1042s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1042s ok 5 /memory-output-stream/write-null 1042s ok 6 /memory-output-stream/writev 1042s ok 7 /memory-output-stream/writev_nonblocking 1042s ok 8 /memory-output-stream/steal_as_bytes 1042s # Start of seek tests 1042s ok 9 /memory-output-stream/seek/fixed 1042s ok 10 /memory-output-stream/seek/resizable 1042s # End of seek tests 1042s # End of memory-output-stream tests 1042s TAP version 14 1042s # random seed: R02S4a7d4bc486f12e092fc71233da2cb9f0 1042s 1..4 1042s # Start of gdbus tests 1042s # Start of exit-on-close tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/default/.dirs/runtime 1042s ok 1 /gdbus/exit-on-close/default 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/true/.dirs/runtime 1042s ok 2 /gdbus/exit-on-close/true 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/false/.dirs/runtime 1042s ok 3 /gdbus/exit-on-close/false 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_35BS52/gdbus/exit-on-close/we-close/.dirs/runtime 1042s ok - glib/gdbus-exit-on-close.test 1042s ok 4 /gdbus/exit-on-close/we-close 1042s # Start of default tests 1042s # End of default tests 1042s # Start of true tests 1042s # End of true tests 1042s # Start of false tests 1042s # End of false tests 1042s # Start of we-close tests 1042s # End of we-close tests 1042s # End of exit-on-close tests 1042s # End of gdbus tests 1042s # Running test: glib/mkenums.py.test 1042s # Executing: glib/mkenums.py.test 1042s TAP version 13 1042s ok 1 __main__.TestMkenums.test_available_in 1042s # glib-mkenums: /usr/bin/glib-mkenums 1042s # tmpdir: /tmp/tmp9sv84uia 1042s # rspfile: False 1042s # /tmp/tmp9sv84uia/tmppkx9h363.h: 1042s # typedef enum { 1042s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1042s # } GDBusServerFlags; 1042s # 1042s # /tmp/tmp9sv84uia/tmp1vfp6qw1.template: 1042s # /*** BEGIN file-header ***/ 1042s # file-header 1042s # /*** END file-header ***/ 1042s # 1042s # /*** BEGIN file-production ***/ 1042s # file-production 1042s # filename: @filename@ 1042s # basename: @basename@ 1042s # /*** END file-production ***/ 1042s # 1042s # /*** BEGIN enumeration-production ***/ 1042s # enumeration-production 1042s # EnumName: @EnumName@ 1042s # enum_name: @enum_name@ 1042s # ENUMNAME: @ENUMNAME@ 1042s # ENUMSHORT: @ENUMSHORT@ 1042s # ENUMPREFIX: @ENUMPREFIX@ 1042s # enumsince: @enumsince@ 1042s # type: @type@ 1042s # Type: @Type@ 1042s # TYPE: @TYPE@ 1042s # /*** END enumeration-production ***/ 1042s # 1042s # /*** BEGIN value-header ***/ 1042s # value-header 1042s # EnumName: @EnumName@ 1042s # enum_name: @enum_name@ 1042s # ENUMNAME: @ENUMNAME@ 1042s # ENUMSHORT: @ENUMSHORT@ 1042s # ENUMPREFIX: @ENUMPREFIX@ 1042s # enumsince: @enumsince@ 1042s # type: @type@ 1042s # Type: @Type@ 1042s # TYPE: @TYPE@ 1042s # /*** END value-header ***/ 1042s # 1042s # /*** BEGIN value-production ***/ 1042s # value-production 1042s # VALUENAME: @VALUENAME@ 1042s # valuenick: @valuenick@ 1042s # valuenum: @valuenum@ 1042s # type: @type@ 1042s # Type: @Type@ 1042s # TYPE: @TYPE@ 1042s # /*** END value-production ***/ 1042s # 1042s # /*** BEGIN value-tail ***/ 1042s # value-tail 1042s # EnumName: @EnumName@ 1042s # enum_name: @enum_name@ 1042s # ENUMNAME: @ENUMNAME@ 1042s # ENUMSHORT: @ENUMSHORT@ 1042s # ENUMPREFIX: @ENUMPREFIX@ 1042s # enumsince: @enumsince@ 1042s # type: @type@ 1042s # Type: @Type@ 1042s # TYPE: @TYPE@ 1042s # /*** END value-tail ***/ 1042s # 1042s # /*** BEGIN comment ***/ 1042s # comment 1042s # comment: @comment@ 1042s # /*** END comment ***/ 1042s # 1042s # /*** BEGIN file-tail ***/ 1042s # file-tail 1042s # /*** END file-tail ***/ 1042s # 1042s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp9sv84uia/tmp1vfp6qw1.template', '/tmp/tmp9sv84uia/tmppkx9h363.h'] 1042s # Return code: 0 1042s # Output: 1042s # comment 1042s # 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. 1042s # 1042s # 1042s # file-header 1042s # file-production 1042s # filename: /tmp/tmp9sv84uia/tmppkx9h363.h 1042s # basename: tmppkx9h363.h 1042s # enumeration-production 1042s # EnumName: GDBusServerFlags 1042s # enum_name: g_dbus_server_flags 1042s # ENUMNAME: G_DBUS_SERVER_FLAGS 1042s # ENUMSHORT: DBUS_SERVER_FLAGS 1042s # ENUMPREFIX: G 1042s # enumsince: 1042s # type: flags 1042s # Type: Flags 1042s # TYPE: FLAGS 1042s # value-header 1042s # EnumName: GDBusServerFlags 1042s # enum_name: g_dbus_server_flags 1042s # ENUMNAME: G_DBUS_SERVER_FLAGS 1042s # ENUMSHORT: DBUS_SERVER_FLAGS 1042s # ENUMPREFIX: G 1042s # enumsince: 1042s # type: flags 1042s # Type: Flags 1042s # TYPE: FLAGS 1042s # value-production 1042s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1042s # valuenick: user 1042s # valuenum: 4 1042s # type: flags 1042s # Type: Flags 1042s # TYPE: FLAGS 1042s # value-tail 1042s # EnumName: GDBusServerFlags 1042s # enum_name: g_dbus_server_flags 1042s # ENUMNAME: G_DBUS_SERVER_FLAGS 1042s # ENUMSHORT: DBUS_SERVER_FLAGS 1042s # ENUMPREFIX: G 1042s # enumsince: 1042s # type: flags 1042s # Type: Flags 1042s # TYPE: FLAGS 1042s # file-tail 1042s # 1042s # comment 1042s # comment: Generated data ends here 1042s # Error: 1043s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpk79nx395 1043s # rspfile: False 1043s # /tmp/tmpk79nx395/tmptn4gyim0.h: 1043s # typedef enum { 1043s # ENUM_VALUE_WITH_COMMA = ',', 1043s # } TestCommaEnum; 1043s # 1043s # /tmp/tmpk79nx395/tmpx1oku4yt.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpk79nx395/tmpx1oku4yt.template', '/tmp/tmpk79nx395/tmptn4gyim0.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpk79nx395/tmptn4gyim0.h 1043s # basename: tmptn4gyim0.h 1043s # enumeration-production 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE_WITH_COMMA 1043s # valuenick: comma 1043s # valuenum: 44 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 3 __main__.TestMkenums.test_deprecated_in 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpkrom0s7m 1043s # rspfile: False 1043s # /tmp/tmpkrom0s7m/tmpndmn9_47.h: 1043s # typedef enum { 1043s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1043s # } GDBusServerFlags; 1043s # 1043s # /tmp/tmpkrom0s7m/tmpz1ddbj_g.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpkrom0s7m/tmpz1ddbj_g.template', '/tmp/tmpkrom0s7m/tmpndmn9_47.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpkrom0s7m/tmpndmn9_47.h 1043s # basename: tmpndmn9_47.h 1043s # enumeration-production 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-header 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-production 1043s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1043s # valuenick: user 1043s # valuenum: 4 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-tail 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 4 __main__.TestMkenums.test_deprecated_in_for 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp4usisu4g 1043s # rspfile: False 1043s # /tmp/tmp4usisu4g/tmp4qv5zq4z.h: 1043s # typedef enum { 1043s # 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) 1043s # } GDBusServerFlags; 1043s # 1043s # /tmp/tmp4usisu4g/tmpzgyu72at.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp4usisu4g/tmpzgyu72at.template', '/tmp/tmp4usisu4g/tmp4qv5zq4z.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmp4usisu4g/tmp4qv5zq4z.h 1043s # basename: tmp4qv5zq4z.h 1043s # enumeration-production 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-header 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-production 1043s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1043s # valuenick: user 1043s # valuenum: 4 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-tail 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 5 __main__.TestMkenums.test_empty_header 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp9zolm0ng 1043s # rspfile: False 1043s # /tmp/tmp9zolm0ng/tmpoqgwbvqg.h: 1043s # /tmp/tmp9zolm0ng/tmpc95jcigf.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp9zolm0ng/tmpc95jcigf.template', '/tmp/tmp9zolm0ng/tmpoqgwbvqg.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 6 __main__.TestMkenums.test_empty_template 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp28aum7p3 1043s # rspfile: False 1043s # /tmp/tmp28aum7p3/tmpnugfczlc.template: 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp28aum7p3/tmpnugfczlc.template'] 1043s # Return code: 0 1043s # Output: 1043s # /* 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. */ 1043s # 1043s # 1043s # /* Generated data ends here */ 1043s # Error: 1043s ok 7 __main__.TestMkenums.test_enum_name 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp7lrgxpw0 1043s # rspfile: False 1043s # /tmp/tmp7lrgxpw0/tmp3xf7zhoz.h: 1043s # typedef enum _SomeEnumIdentifier { 1043s # ENUM_VALUE 1043s # } SomeEnumIdentifier; 1043s # 1043s # /tmp/tmp7lrgxpw0/tmpr0wlsmer.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp7lrgxpw0/tmpr0wlsmer.template', '/tmp/tmp7lrgxpw0/tmp3xf7zhoz.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmp7lrgxpw0/tmp3xf7zhoz.h 1043s # basename: tmp3xf7zhoz.h 1043s # enumeration-production 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE 1043s # valuenick: value 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 8 __main__.TestMkenums.test_enum_private_public 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpu61ah3nx 1043s # rspfile: False 1043s # /tmp/tmpu61ah3nx/tmpj87u0kf6.h: 1043s # typedef enum { 1043s # ENUM_VALUE_PUBLIC1, 1043s # /*< private >*/ 1043s # ENUM_VALUE_PRIVATE, 1043s # } SomeEnumA 1043s # 1043s # /tmp/tmpu61ah3nx/tmp7msxwp_4.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpu61ah3nx/tmp7msxwp_4.template', '/tmp/tmpu61ah3nx/tmpj87u0kf6.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpu61ah3nx/tmpj87u0kf6.h 1043s # basename: tmpj87u0kf6.h 1043s # enumeration-production 1043s # EnumName: SomeEnumA 1043s # enum_name: some_enum_a 1043s # ENUMNAME: SOME_ENUM_A 1043s # ENUMSHORT: ENUM_A 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: SomeEnumA 1043s # enum_name: some_enum_a 1043s # ENUMNAME: SOME_ENUM_A 1043s # ENUMSHORT: ENUM_A 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE_PUBLIC1 1043s # valuenick: public1 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: SomeEnumA 1043s # enum_name: some_enum_a 1043s # ENUMNAME: SOME_ENUM_A 1043s # ENUMSHORT: ENUM_A 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s # 1043s # /tmp/tmpu61ah3nx/tmprast5c7y.h: 1043s # typedef enum { 1043s # /*< private >*/ 1043s # ENUM_VALUE_PRIVATE, 1043s # /*< public >*/ 1043s # ENUM_VALUE_PUBLIC2, 1043s # } SomeEnumB; 1043s # 1043s # /tmp/tmpu61ah3nx/tmpsuq13tcs.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpu61ah3nx/tmpsuq13tcs.template', '/tmp/tmpu61ah3nx/tmprast5c7y.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpu61ah3nx/tmprast5c7y.h 1043s # basename: tmprast5c7y.h 1043s # enumeration-production 1043s # EnumName: SomeEnumB 1043s # enum_name: some_enum_b 1043s # ENUMNAME: SOME_ENUM_B 1043s # ENUMSHORT: ENUM_B 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: SomeEnumB 1043s # enum_name: some_enum_b 1043s # ENUMNAME: SOME_ENUM_B 1043s # ENUMSHORT: ENUM_B 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE_PUBLIC2 1043s # valuenick: public2 1043s # valuenum: 1 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: SomeEnumB 1043s # enum_name: some_enum_b 1043s # ENUMNAME: SOME_ENUM_B 1043s # ENUMSHORT: ENUM_B 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp8o1lvruy 1043s # rspfile: False 1043s # /tmp/tmp8o1lvruy/tmpq_578mte.h: 1043s # typedef enum { 1043s # /*< private >*/ 1043s # ENUM_VALUE_PRIVATE = 5, 1043s # /*< public >*/ 1043s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1043s # } TestSymbolicEnum; 1043s # 1043s # /tmp/tmp8o1lvruy/tmp80rdpv3q.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8o1lvruy/tmp80rdpv3q.template', '/tmp/tmp8o1lvruy/tmpq_578mte.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmp8o1lvruy/tmpq_578mte.h 1043s # basename: tmpq_578mte.h 1043s # enumeration-production 1043s # EnumName: TestSymbolicEnum 1043s # enum_name: test_symbolic_enum 1043s # ENUMNAME: TEST_SYMBOLIC_ENUM 1043s # ENUMSHORT: SYMBOLIC_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: TestSymbolicEnum 1043s # enum_name: test_symbolic_enum 1043s # ENUMNAME: TEST_SYMBOLIC_ENUM 1043s # ENUMSHORT: SYMBOLIC_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE_PUBLIC 1043s # valuenick: public 1043s # valuenum: 7 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: TestSymbolicEnum 1043s # enum_name: test_symbolic_enum 1043s # ENUMNAME: TEST_SYMBOLIC_ENUM 1043s # ENUMSHORT: SYMBOLIC_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpb8w5zz6t 1043s # rspfile: False 1043s # /tmp/tmpb8w5zz6t/tmpo_1ki3br.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-tail ***/ 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpb8w5zz6t/tmpo_1ki3br.template'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # file-tail 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s # WARNING: @filename@ used in file-header section. 1043s # WARNING: @basename@ used in file-header section. 1043s # WARNING: @filename@ used in file-tail section. 1043s # WARNING: @basename@ used in file-tail section. 1043s ok 11 __main__.TestMkenums.test_help 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp43kazaxz 1043s # rspfile: False 1043s # Running: ['/usr/bin/glib-mkenums', '--help'] 1043s # Return code: 0 1043s # Output: 1043s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1043s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1043s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1043s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1043s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1043s # [--output OUTPUT] [--version] 1043s # [args ...] 1043s # 1043s # positional arguments: 1043s # args One or more input files, or a single argument 1043s # @rspfile_path pointing to a file that contains the 1043s # actual arguments 1043s # 1043s # options: 1043s # -h, --help show this help message and exit 1043s # --identifier-prefix IDPREFIX 1043s # Identifier prefix 1043s # --symbol-prefix SYMPREFIX 1043s # Symbol prefix 1043s # --fhead FHEAD Output file header 1043s # --ftail FTAIL Output file footer 1043s # --fprod FPROD Put out TEXT every time a new input file is being 1043s # processed. 1043s # --eprod EPROD Per enum text, produced prior to value iterations 1043s # --vhead VHEAD Value header, produced before iterating over enum 1043s # values 1043s # --vprod VPROD Value text, produced for each enum value. 1043s # --vtail VTAIL Value tail, produced after iterating over enum values 1043s # --comments COMMENT_TMPL 1043s # Comment structure 1043s # --template TEMPLATE Template file 1043s # --output OUTPUT 1043s # --version, -v Print version information 1043s # 1043s # Production text substitutions: 1043s # @EnumName@ PrefixTheXEnum 1043s # @enum_name@ prefix_the_xenum 1043s # @ENUMNAME@ PREFIX_THE_XENUM 1043s # @ENUMSHORT@ THE_XENUM 1043s # @ENUMPREFIX@ PREFIX 1043s # @enumsince@ the user-provided since value given 1043s # @VALUENAME@ PREFIX_THE_XVALUE 1043s # @valuenick@ the-xvalue 1043s # @valuenum@ the integer value (limited support, Since: 2.26) 1043s # @type@ either enum or flags 1043s # @Type@ either Enum or Flags 1043s # @TYPE@ either ENUM or FLAGS 1043s # @filename@ name of current input file 1043s # @basename@ base name of the current input file (Since: 2.22) 1043s # Error: 1043s ok 12 __main__.TestMkenums.test_no_args 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmp9lugmpkm 1043s # rspfile: False 1043s # Running: ['/usr/bin/glib-mkenums'] 1043s # Return code: 0 1043s # Output: 1043s # /* 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. */ 1043s # 1043s # 1043s # /* Generated data ends here */ 1043s # Error: 1043s ok 13 __main__.TestMkenums.test_no_headers 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpkr0t1_s5 1043s # rspfile: False 1043s # /tmp/tmpkr0t1_s5/tmpp1pxzcwt.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpkr0t1_s5/tmpp1pxzcwt.template'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 14 __main__.TestMkenums.test_no_nick 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpyvsdfbap 1043s # rspfile: False 1043s # /tmp/tmpyvsdfbap/tmph7vpfuk2.h: 1043s # typedef enum { 1043s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1043s # } GeglSamplerType; 1043s # 1043s # /tmp/tmpyvsdfbap/tmpwvg45w2a.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpyvsdfbap/tmpwvg45w2a.template', '/tmp/tmpyvsdfbap/tmph7vpfuk2.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpyvsdfbap/tmph7vpfuk2.h 1043s # basename: tmph7vpfuk2.h 1043s # enumeration-production 1043s # EnumName: GeglSamplerType 1043s # enum_name: gegl_sampler_type 1043s # ENUMNAME: GEGL_SAMPLER_TYPE 1043s # ENUMSHORT: SAMPLER_TYPE 1043s # ENUMPREFIX: GEGL 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: GeglSamplerType 1043s # enum_name: gegl_sampler_type 1043s # ENUMNAME: GEGL_SAMPLER_TYPE 1043s # ENUMSHORT: SAMPLER_TYPE 1043s # ENUMPREFIX: GEGL 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: GEGL_SAMPLER_NEAREST 1043s # valuenick: nearest 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: GeglSamplerType 1043s # enum_name: gegl_sampler_type 1043s # ENUMNAME: GEGL_SAMPLER_TYPE 1043s # ENUMSHORT: SAMPLER_TYPE 1043s # ENUMPREFIX: GEGL 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpria_eb_l 1043s # rspfile: False 1043s # /tmp/tmpria_eb_l/tmp00_vt85m.h: 1043s # /* Copyright © La Peña */ 1043s # typedef enum { 1043s # ENUM_VALUE 1043s # } SomeEnumIdentifier; 1043s # 1043s # /tmp/tmpria_eb_l/tmpl093sclb.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpria_eb_l/tmpl093sclb.template', '/tmp/tmpria_eb_l/tmp00_vt85m.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpria_eb_l/tmp00_vt85m.h 1043s # basename: tmp00_vt85m.h 1043s # enumeration-production 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE 1043s # valuenick: value 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: SomeEnumIdentifier 1043s # enum_name: some_enum_identifier 1043s # ENUMNAME: SOME_ENUM_IDENTIFIER 1043s # ENUMSHORT: ENUM_IDENTIFIER 1043s # ENUMPREFIX: SOME 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1043s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1043s ok 16 __main__.TestMkenums.test_reproducible 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpvl5tmdjz 1043s # rspfile: False 1043s # /tmp/tmpvl5tmdjz/tmpl4se61q8.template: template 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvl5tmdjz/tmpl4se61q8.template', '/tmp/tmpvl5tmdjz/tmpnqo5etj81.h', '/tmp/tmpvl5tmdjz/tmpy9cca29b2.h'] 1043s # Return code: 0 1043s # Output: 1043s # /* 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. */ 1043s # 1043s # 1043s # /* Generated data ends here */ 1043s # Error: 1043s # 1043s # /tmp/tmpvl5tmdjz/tmppbnqibjb.template: template 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvl5tmdjz/tmppbnqibjb.template', '/tmp/tmpvl5tmdjz/tmpy9cca29b2.h', '/tmp/tmpvl5tmdjz/tmpnqo5etj81.h'] 1043s # Return code: 0 1043s # Output: 1043s # /* 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. */ 1043s # 1043s # 1043s # /* Generated data ends here */ 1043s # Error: 1043s ok 17 __main__.TestMkenums.test_since 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpujxh3dm7 1043s # rspfile: False 1043s # /tmp/tmpujxh3dm7/tmpe6i7k4cq.h: 1043s # typedef enum { /*< since=1.0 >*/ 1043s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1043s # } QmiWmsMessageProtocol; 1043s # 1043s # /tmp/tmpujxh3dm7/tmpw70mxw53.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpujxh3dm7/tmpw70mxw53.template', '/tmp/tmpujxh3dm7/tmpe6i7k4cq.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpujxh3dm7/tmpe6i7k4cq.h 1043s # basename: tmpe6i7k4cq.h 1043s # enumeration-production 1043s # EnumName: QmiWmsMessageProtocol 1043s # enum_name: qmi_wms_message_protocol 1043s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1043s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1043s # ENUMPREFIX: QMI 1043s # enumsince: 1.0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: QmiWmsMessageProtocol 1043s # enum_name: qmi_wms_message_protocol 1043s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1043s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1043s # ENUMPREFIX: QMI 1043s # enumsince: 1.0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1043s # valuenick: cdma 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: QmiWmsMessageProtocol 1043s # enum_name: qmi_wms_message_protocol 1043s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1043s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1043s # ENUMPREFIX: QMI 1043s # enumsince: 1.0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 18 __main__.TestMkenums.test_with_double_quotes 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpzqn11bsu 1043s # rspfile: False 1043s # /tmp/tmpzqn11bsu/tmp0q3sm946.h: 1043s # typedef enum { 1043s # FOO_VALUE /*< nick="eek, a comma" >*/ 1043s # } Foo; 1043s # 1043s # /tmp/tmpzqn11bsu/tmpbof1cmsj.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzqn11bsu/tmpbof1cmsj.template', '/tmp/tmpzqn11bsu/tmp0q3sm946.h'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpzqn11bsu/tmp0q3sm946.h 1043s # basename: tmp0q3sm946.h 1043s # enumeration-production 1043s # EnumName: Foo 1043s # enum_name: foo_ 1043s # ENUMNAME: FOO_ 1043s # ENUMSHORT: 1043s # ENUMPREFIX: FOO 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: Foo 1043s # enum_name: foo_ 1043s # ENUMNAME: FOO_ 1043s # ENUMSHORT: 1043s # ENUMPREFIX: FOO 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: FOO_VALUE 1043s # valuenick: eek, a comma 1043s # valuenum: 0 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: Foo 1043s # enum_name: foo_ 1043s # ENUMNAME: FOO_ 1043s # ENUMSHORT: 1043s # ENUMPREFIX: FOO 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 19 __main__.TestRspMkenums.test_available_in 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpac8vjh5f 1043s # rspfile: True 1043s # /tmp/tmpac8vjh5f/tmp8a14sg85.h: 1043s # typedef enum { 1043s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1043s # } GDBusServerFlags; 1043s # 1043s # /tmp/tmpac8vjh5f/tmplgeokvdc.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Response file contains: --template /tmp/tmpac8vjh5f/tmplgeokvdc.template /tmp/tmpac8vjh5f/tmp8a14sg85.h 1043s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpac8vjh5f/tmpwfa9fgx8'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpac8vjh5f/tmp8a14sg85.h 1043s # basename: tmp8a14sg85.h 1043s # enumeration-production 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-header 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-production 1043s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1043s # valuenick: user 1043s # valuenum: 4 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-tail 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpvj3h0_sa 1043s # rspfile: True 1043s # /tmp/tmpvj3h0_sa/tmpwbkkkeud.h: 1043s # typedef enum { 1043s # ENUM_VALUE_WITH_COMMA = ',', 1043s # } TestCommaEnum; 1043s # 1043s # /tmp/tmpvj3h0_sa/tmp0e01iasj.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Response file contains: --template /tmp/tmpvj3h0_sa/tmp0e01iasj.template /tmp/tmpvj3h0_sa/tmpwbkkkeud.h 1043s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvj3h0_sa/tmp2cmrv2ec'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpvj3h0_sa/tmpwbkkkeud.h 1043s # basename: tmpwbkkkeud.h 1043s # enumeration-production 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-header 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-production 1043s # VALUENAME: ENUM_VALUE_WITH_COMMA 1043s # valuenick: comma 1043s # valuenum: 44 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # value-tail 1043s # EnumName: TestCommaEnum 1043s # enum_name: test_comma_enum 1043s # ENUMNAME: TEST_COMMA_ENUM 1043s # ENUMSHORT: COMMA_ENUM 1043s # ENUMPREFIX: TEST 1043s # enumsince: 1043s # type: enum 1043s # Type: Enum 1043s # TYPE: ENUM 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 21 __main__.TestRspMkenums.test_deprecated_in 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpbiadahiu 1043s # rspfile: True 1043s # /tmp/tmpbiadahiu/tmpchto_4na.h: 1043s # typedef enum { 1043s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1043s # } GDBusServerFlags; 1043s # 1043s # /tmp/tmpbiadahiu/tmp2hniewg3.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Response file contains: --template /tmp/tmpbiadahiu/tmp2hniewg3.template /tmp/tmpbiadahiu/tmpchto_4na.h 1043s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbiadahiu/tmpxfb_9hh6'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmpbiadahiu/tmpchto_4na.h 1043s # basename: tmpchto_4na.h 1043s # enumeration-production 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-header 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-production 1043s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1043s # valuenick: user 1043s # valuenum: 4 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-tail 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmphv5y06gn 1043s # rspfile: True 1043s # /tmp/tmphv5y06gn/tmp3c4lp2hg.h: 1043s # typedef enum { 1043s # 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) 1043s # } GDBusServerFlags; 1043s # 1043s # /tmp/tmphv5y06gn/tmpkf594fj2.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Response file contains: --template /tmp/tmphv5y06gn/tmpkf594fj2.template /tmp/tmphv5y06gn/tmp3c4lp2hg.h 1043s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphv5y06gn/tmp10qh2khv'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-production 1043s # filename: /tmp/tmphv5y06gn/tmp3c4lp2hg.h 1043s # basename: tmp3c4lp2hg.h 1043s # enumeration-production 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-header 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-production 1043s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1043s # valuenick: user 1043s # valuenum: 4 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # value-tail 1043s # EnumName: GDBusServerFlags 1043s # enum_name: g_dbus_server_flags 1043s # ENUMNAME: G_DBUS_SERVER_FLAGS 1043s # ENUMSHORT: DBUS_SERVER_FLAGS 1043s # ENUMPREFIX: G 1043s # enumsince: 1043s # type: flags 1043s # Type: Flags 1043s # TYPE: FLAGS 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1043s ok 23 __main__.TestRspMkenums.test_empty_header 1043s # glib-mkenums: /usr/bin/glib-mkenums 1043s # tmpdir: /tmp/tmpoow3u5mi 1043s # rspfile: True 1043s # /tmp/tmpoow3u5mi/tmpvtqk0dco.h: 1043s # /tmp/tmpoow3u5mi/tmpyrgc7y54.template: 1043s # /*** BEGIN file-header ***/ 1043s # file-header 1043s # /*** END file-header ***/ 1043s # 1043s # /*** BEGIN file-production ***/ 1043s # file-production 1043s # filename: @filename@ 1043s # basename: @basename@ 1043s # /*** END file-production ***/ 1043s # 1043s # /*** BEGIN enumeration-production ***/ 1043s # enumeration-production 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END enumeration-production ***/ 1043s # 1043s # /*** BEGIN value-header ***/ 1043s # value-header 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-header ***/ 1043s # 1043s # /*** BEGIN value-production ***/ 1043s # value-production 1043s # VALUENAME: @VALUENAME@ 1043s # valuenick: @valuenick@ 1043s # valuenum: @valuenum@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-production ***/ 1043s # 1043s # /*** BEGIN value-tail ***/ 1043s # value-tail 1043s # EnumName: @EnumName@ 1043s # enum_name: @enum_name@ 1043s # ENUMNAME: @ENUMNAME@ 1043s # ENUMSHORT: @ENUMSHORT@ 1043s # ENUMPREFIX: @ENUMPREFIX@ 1043s # enumsince: @enumsince@ 1043s # type: @type@ 1043s # Type: @Type@ 1043s # TYPE: @TYPE@ 1043s # /*** END value-tail ***/ 1043s # 1043s # /*** BEGIN comment ***/ 1043s # comment 1043s # comment: @comment@ 1043s # /*** END comment ***/ 1043s # 1043s # /*** BEGIN file-tail ***/ 1043s # file-tail 1043s # /*** END file-tail ***/ 1043s # 1043s # Response file contains: --template /tmp/tmpoow3u5mi/tmpyrgc7y54.template /tmp/tmpoow3u5mi/tmpvtqk0dco.h 1043s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpoow3u5mi/tmpls27yss2'] 1043s # Return code: 0 1043s # Output: 1043s # comment 1043s # 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. 1043s # 1043s # 1043s # file-header 1043s # file-tail 1043s # 1043s # comment 1043s # comment: Generated data ends here 1043s # Error: 1044s ok 24 __main__.TestRspMkenums.test_empty_template 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmp29pb5_fj 1044s # rspfile: True 1044s # /tmp/tmp29pb5_fj/tmp7xqjyon7.template: 1044s # Response file contains: --template /tmp/tmp29pb5_fj/tmp7xqjyon7.template 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp29pb5_fj/tmpkkgklncv'] 1044s # Return code: 0 1044s # Output: 1044s # /* 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. */ 1044s # 1044s # 1044s # /* Generated data ends here */ 1044s # Error: 1044s ok 25 __main__.TestRspMkenums.test_enum_name 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpu15j61_r 1044s # rspfile: True 1044s # /tmp/tmpu15j61_r/tmp9bw7o8wn.h: 1044s # typedef enum _SomeEnumIdentifier { 1044s # ENUM_VALUE 1044s # } SomeEnumIdentifier; 1044s # 1044s # /tmp/tmpu15j61_r/tmpjw_k4hdf.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmpu15j61_r/tmpjw_k4hdf.template /tmp/tmpu15j61_r/tmp9bw7o8wn.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpu15j61_r/tmp2e3m3_dn'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmpu15j61_r/tmp9bw7o8wn.h 1044s # basename: tmp9bw7o8wn.h 1044s # enumeration-production 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: ENUM_VALUE 1044s # valuenick: value 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 26 __main__.TestRspMkenums.test_enum_private_public 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmp_wtxh1oy 1044s # rspfile: True 1044s # /tmp/tmp_wtxh1oy/tmpjyvu95n8.h: 1044s # typedef enum { 1044s # ENUM_VALUE_PUBLIC1, 1044s # /*< private >*/ 1044s # ENUM_VALUE_PRIVATE, 1044s # } SomeEnumA 1044s # 1044s # /tmp/tmp_wtxh1oy/tmp_ejf1xu0.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmp_wtxh1oy/tmp_ejf1xu0.template /tmp/tmp_wtxh1oy/tmpjyvu95n8.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_wtxh1oy/tmp6bju643t'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmp_wtxh1oy/tmpjyvu95n8.h 1044s # basename: tmpjyvu95n8.h 1044s # enumeration-production 1044s # EnumName: SomeEnumA 1044s # enum_name: some_enum_a 1044s # ENUMNAME: SOME_ENUM_A 1044s # ENUMSHORT: ENUM_A 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: SomeEnumA 1044s # enum_name: some_enum_a 1044s # ENUMNAME: SOME_ENUM_A 1044s # ENUMSHORT: ENUM_A 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: ENUM_VALUE_PUBLIC1 1044s # valuenick: public1 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: SomeEnumA 1044s # enum_name: some_enum_a 1044s # ENUMNAME: SOME_ENUM_A 1044s # ENUMSHORT: ENUM_A 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s # 1044s # /tmp/tmp_wtxh1oy/tmppvf_0uap.h: 1044s # typedef enum { 1044s # /*< private >*/ 1044s # ENUM_VALUE_PRIVATE, 1044s # /*< public >*/ 1044s # ENUM_VALUE_PUBLIC2, 1044s # } SomeEnumB; 1044s # 1044s # /tmp/tmp_wtxh1oy/tmpx0zcxe_y.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmp_wtxh1oy/tmpx0zcxe_y.template /tmp/tmp_wtxh1oy/tmppvf_0uap.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_wtxh1oy/tmp_e61hzql'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmp_wtxh1oy/tmppvf_0uap.h 1044s # basename: tmppvf_0uap.h 1044s # enumeration-production 1044s # EnumName: SomeEnumB 1044s # enum_name: some_enum_b 1044s # ENUMNAME: SOME_ENUM_B 1044s # ENUMSHORT: ENUM_B 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: SomeEnumB 1044s # enum_name: some_enum_b 1044s # ENUMNAME: SOME_ENUM_B 1044s # ENUMSHORT: ENUM_B 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: ENUM_VALUE_PUBLIC2 1044s # valuenick: public2 1044s # valuenum: 1 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: SomeEnumB 1044s # enum_name: some_enum_b 1044s # ENUMNAME: SOME_ENUM_B 1044s # ENUMSHORT: ENUM_B 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmp4jb742oq 1044s # rspfile: True 1044s # /tmp/tmp4jb742oq/tmp5zh2rkqu.h: 1044s # typedef enum { 1044s # /*< private >*/ 1044s # ENUM_VALUE_PRIVATE = 5, 1044s # /*< public >*/ 1044s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1044s # } TestSymbolicEnum; 1044s # 1044s # /tmp/tmp4jb742oq/tmp7thn09e2.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmp4jb742oq/tmp7thn09e2.template /tmp/tmp4jb742oq/tmp5zh2rkqu.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp4jb742oq/tmpi1ta7q58'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmp4jb742oq/tmp5zh2rkqu.h 1044s # basename: tmp5zh2rkqu.h 1044s # enumeration-production 1044s # EnumName: TestSymbolicEnum 1044s # enum_name: test_symbolic_enum 1044s # ENUMNAME: TEST_SYMBOLIC_ENUM 1044s # ENUMSHORT: SYMBOLIC_ENUM 1044s # ENUMPREFIX: TEST 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: TestSymbolicEnum 1044s # enum_name: test_symbolic_enum 1044s # ENUMNAME: TEST_SYMBOLIC_ENUM 1044s # ENUMSHORT: SYMBOLIC_ENUM 1044s # ENUMPREFIX: TEST 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: ENUM_VALUE_PUBLIC 1044s # valuenick: public 1044s # valuenum: 7 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: TestSymbolicEnum 1044s # enum_name: test_symbolic_enum 1044s # ENUMNAME: TEST_SYMBOLIC_ENUM 1044s # ENUMSHORT: SYMBOLIC_ENUM 1044s # ENUMPREFIX: TEST 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpq6l4mg46 1044s # rspfile: True 1044s # /tmp/tmpq6l4mg46/tmpz2jtmka0.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-tail ***/ 1044s # Response file contains: --template /tmp/tmpq6l4mg46/tmpz2jtmka0.template 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpq6l4mg46/tmplo1dowz0'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # file-tail 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s # WARNING: @filename@ used in file-header section. 1044s # WARNING: @basename@ used in file-header section. 1044s # WARNING: @filename@ used in file-tail section. 1044s # WARNING: @basename@ used in file-tail section. 1044s ok 29 __main__.TestRspMkenums.test_help 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmp91m34h_8 1044s # rspfile: True 1044s # Response file contains: --help 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp91m34h_8/tmp3venxguk'] 1044s # Return code: 0 1044s # Output: 1044s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1044s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1044s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1044s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1044s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1044s # [--output OUTPUT] [--version] 1044s # [args ...] 1044s # 1044s # positional arguments: 1044s # args One or more input files, or a single argument 1044s # @rspfile_path pointing to a file that contains the 1044s # actual arguments 1044s # 1044s # options: 1044s # -h, --help show this help message and exit 1044s # --identifier-prefix IDPREFIX 1044s # Identifier prefix 1044s # --symbol-prefix SYMPREFIX 1044s # Symbol prefix 1044s # --fhead FHEAD Output file header 1044s # --ftail FTAIL Output file footer 1044s # --fprod FPROD Put out TEXT every time a new input file is being 1044s # processed. 1044s # --eprod EPROD Per enum text, produced prior to value iterations 1044s # --vhead VHEAD Value header, produced before iterating over enum 1044s # values 1044s # --vprod VPROD Value text, produced for each enum value. 1044s # --vtail VTAIL Value tail, produced after iterating over enum values 1044s # --comments COMMENT_TMPL 1044s # Comment structure 1044s # --template TEMPLATE Template file 1044s # --output OUTPUT 1044s # --version, -v Print version information 1044s # 1044s # Production text substitutions: 1044s # @EnumName@ PrefixTheXEnum 1044s # @enum_name@ prefix_the_xenum 1044s # @ENUMNAME@ PREFIX_THE_XENUM 1044s # @ENUMSHORT@ THE_XENUM 1044s # @ENUMPREFIX@ PREFIX 1044s # @enumsince@ the user-provided since value given 1044s # @VALUENAME@ PREFIX_THE_XVALUE 1044s # @valuenick@ the-xvalue 1044s # @valuenum@ the integer value (limited support, Since: 2.26) 1044s # @type@ either enum or flags 1044s # @Type@ either Enum or Flags 1044s # @TYPE@ either ENUM or FLAGS 1044s # @filename@ name of current input file 1044s # @basename@ base name of the current input file (Since: 2.22) 1044s # Error: 1044s ok 30 __main__.TestRspMkenums.test_no_args 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpuxrn_879 1044s # rspfile: True 1044s # Response file contains: 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpuxrn_879/tmpo322fgbk'] 1044s # Return code: 0 1044s # Output: 1044s # /* 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. */ 1044s # 1044s # 1044s # /* Generated data ends here */ 1044s # Error: 1044s ok 31 __main__.TestRspMkenums.test_no_headers 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpb3zfp_wz 1044s # rspfile: True 1044s # /tmp/tmpb3zfp_wz/tmp2cn86x7v.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmpb3zfp_wz/tmp2cn86x7v.template 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpb3zfp_wz/tmp57onxc96'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 32 __main__.TestRspMkenums.test_no_nick 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpe9bg450q 1044s # rspfile: True 1044s # /tmp/tmpe9bg450q/tmpnmr2zf5t.h: 1044s # typedef enum { 1044s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1044s # } GeglSamplerType; 1044s # 1044s # /tmp/tmpe9bg450q/tmp8hmlnsr0.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmpe9bg450q/tmp8hmlnsr0.template /tmp/tmpe9bg450q/tmpnmr2zf5t.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpe9bg450q/tmp9ja9lzmv'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmpe9bg450q/tmpnmr2zf5t.h 1044s # basename: tmpnmr2zf5t.h 1044s # enumeration-production 1044s # EnumName: GeglSamplerType 1044s # enum_name: gegl_sampler_type 1044s # ENUMNAME: GEGL_SAMPLER_TYPE 1044s # ENUMSHORT: SAMPLER_TYPE 1044s # ENUMPREFIX: GEGL 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: GeglSamplerType 1044s # enum_name: gegl_sampler_type 1044s # ENUMNAME: GEGL_SAMPLER_TYPE 1044s # ENUMSHORT: SAMPLER_TYPE 1044s # ENUMPREFIX: GEGL 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: GEGL_SAMPLER_NEAREST 1044s # valuenick: nearest 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: GeglSamplerType 1044s # enum_name: gegl_sampler_type 1044s # ENUMNAME: GEGL_SAMPLER_TYPE 1044s # ENUMSHORT: SAMPLER_TYPE 1044s # ENUMPREFIX: GEGL 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmp8f72b4ke 1044s # rspfile: True 1044s # /tmp/tmp8f72b4ke/tmpccuin4nz.h: 1044s # /* Copyright © La Peña */ 1044s # typedef enum { 1044s # ENUM_VALUE 1044s # } SomeEnumIdentifier; 1044s # 1044s # /tmp/tmp8f72b4ke/tmpqv_wfnpd.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmp8f72b4ke/tmpqv_wfnpd.template /tmp/tmp8f72b4ke/tmpccuin4nz.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8f72b4ke/tmpjm9u04_z'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmp8f72b4ke/tmpccuin4nz.h 1044s # basename: tmpccuin4nz.h 1044s # enumeration-production 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: ENUM_VALUE 1044s # valuenick: value 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: SomeEnumIdentifier 1044s # enum_name: some_enum_identifier 1044s # ENUMNAME: SOME_ENUM_IDENTIFIER 1044s # ENUMSHORT: ENUM_IDENTIFIER 1044s # ENUMPREFIX: SOME 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1044s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1044s ok 34 __main__.TestRspMkenums.test_reproducible 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpwsqnka0d 1044s # rspfile: True 1044s # /tmp/tmpwsqnka0d/tmpy2ginxu0.template: template 1044s # Response file contains: --template /tmp/tmpwsqnka0d/tmpy2ginxu0.template /tmp/tmpwsqnka0d/tmpqmleiaqc1.h /tmp/tmpwsqnka0d/tmphxqstqmi2.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpwsqnka0d/tmp0iy8hvj7'] 1044s # Return code: 0 1044s # Output: 1044s # /* 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. */ 1044s # 1044s # 1044s # /* Generated data ends here */ 1044s # Error: 1044s # 1044s # /tmp/tmpwsqnka0d/tmpe9l50654.template: template 1044s # Response file contains: --template /tmp/tmpwsqnka0d/tmpe9l50654.template /tmp/tmpwsqnka0d/tmphxqstqmi2.h /tmp/tmpwsqnka0d/tmpqmleiaqc1.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpwsqnka0d/tmp02cfd4hv'] 1044s # Return code: 0 1044s # Output: 1044s # /* 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. */ 1044s # 1044s # 1044s # /* Generated data ends here */ 1044s # Error: 1044s ok 35 __main__.TestRspMkenums.test_since 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpkk9pts6l 1044s # rspfile: True 1044s # /tmp/tmpkk9pts6l/tmpeamzceom.h: 1044s # typedef enum { /*< since=1.0 >*/ 1044s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1044s # } QmiWmsMessageProtocol; 1044s # 1044s # /tmp/tmpkk9pts6l/tmpqvs494vz.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmpkk9pts6l/tmpqvs494vz.template /tmp/tmpkk9pts6l/tmpeamzceom.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkk9pts6l/tmp6sg71p87'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmpkk9pts6l/tmpeamzceom.h 1044s # basename: tmpeamzceom.h 1044s # enumeration-production 1044s # EnumName: QmiWmsMessageProtocol 1044s # enum_name: qmi_wms_message_protocol 1044s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1044s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1044s # ENUMPREFIX: QMI 1044s # enumsince: 1.0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: QmiWmsMessageProtocol 1044s # enum_name: qmi_wms_message_protocol 1044s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1044s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1044s # ENUMPREFIX: QMI 1044s # enumsince: 1.0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1044s # valuenick: cdma 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: QmiWmsMessageProtocol 1044s # enum_name: qmi_wms_message_protocol 1044s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1044s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1044s # ENUMPREFIX: QMI 1044s # enumsince: 1.0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1044s # glib-mkenums: /usr/bin/glib-mkenums 1044s # tmpdir: /tmp/tmpuaudbkb6 1044s # rspfile: True 1044s # /tmp/tmpuaudbkb6/tmprblv_brr.h: 1044s # typedef enum { 1044s # FOO_VALUE /*< nick="eek, a comma" >*/ 1044s # } Foo; 1044s # 1044s # /tmp/tmpuaudbkb6/tmpg7ma_nd7.template: 1044s # /*** BEGIN file-header ***/ 1044s # file-header 1044s # /*** END file-header ***/ 1044s # 1044s # /*** BEGIN file-production ***/ 1044s # file-production 1044s # filename: @filename@ 1044s # basename: @basename@ 1044s # /*** END file-production ***/ 1044s # 1044s # /*** BEGIN enumeration-production ***/ 1044s # enumeration-production 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END enumeration-production ***/ 1044s # 1044s # /*** BEGIN value-header ***/ 1044s # value-header 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-header ***/ 1044s # 1044s # /*** BEGIN value-production ***/ 1044s # value-production 1044s # VALUENAME: @VALUENAME@ 1044s # valuenick: @valuenick@ 1044s # valuenum: @valuenum@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-production ***/ 1044s # 1044s # /*** BEGIN value-tail ***/ 1044s # value-tail 1044s # EnumName: @EnumName@ 1044s # enum_name: @enum_name@ 1044s # ENUMNAME: @ENUMNAME@ 1044s # ENUMSHORT: @ENUMSHORT@ 1044s # ENUMPREFIX: @ENUMPREFIX@ 1044s # enumsince: @enumsince@ 1044s # type: @type@ 1044s # Type: @Type@ 1044s # TYPE: @TYPE@ 1044s # /*** END value-tail ***/ 1044s # 1044s # /*** BEGIN comment ***/ 1044s # comment 1044s # comment: @comment@ 1044s # /*** END comment ***/ 1044s # 1044s # /*** BEGIN file-tail ***/ 1044s # file-tail 1044s # /*** END file-tail ***/ 1044s # 1044s # Response file contains: --template /tmp/tmpuaudbkb6/tmpg7ma_nd7.template /tmp/tmpuaudbkb6/tmprblv_brr.h 1044s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpuaudbkb6/tmpq0_fj3z1'] 1044s # Return code: 0 1044s # Output: 1044s # comment 1044s # 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. 1044s # 1044s # 1044s # file-header 1044s # file-production 1044s # filename: /tmp/tmpuaudbkb6/tmprblv_brr.h 1044s # basename: tmprblv_brr.h 1044s # enumeration-production 1044s # EnumName: Foo 1044s # enum_name: foo_ 1044s # ENUMNAME: FOO_ 1044s # ENUMSHORT: 1044s # ENUMPREFIX: FOO 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-header 1044s # EnumName: Foo 1044s # enum_name: foo_ 1044s # ENUMNAME: FOO_ 1044s # ENUMSHORT: 1044s # ENUMPREFIX: FOO 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-production 1044s # VALUENAME: FOO_VALUE 1044s # valuenick: eek, a comma 1044s # valuenum: 0 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # value-tail 1044s # EnumName: Foo 1044s # enum_name: foo_ 1044s # ENUMNAME: FOO_ 1044s # ENUMSHORT: 1044s # ENUMPREFIX: FOO 1044s # enumsince: 1044s # type: enum 1044s # Type: Enum 1044s # TYPE: ENUM 1044s # file-tail 1044s # 1044s # comment 1044s # comment: Generated data ends here 1044s # Error: 1044s 1..36 1044s ok - glib/mkenums.py.test 1044s # Running test: glib/gdbus-names.test 1044s TAP version 14 1044s # random seed: R02S53a385c93910e7cd14e425debc2b9a76 1044s 1..10 1044s # Start of gdbus tests 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/validate-names/.dirs/runtime 1044s ok 1 /gdbus/validate-names 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-own-name/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 2 /gdbus/bus-own-name 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 3 /gdbus/bus-watch-name 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 4 /gdbus/bus-watch-name-auto-start 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s dbus-daemon[9757]: [session uid=1000 pid=9757 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=9748 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 1044s # Acquired a message bus connection 1044s dbus-daemon[9757]: [session uid=1000 pid=9757 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 1044s # Acquired the name org.gtk.GDBus.FakeService 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 6 /gdbus/bus-watch-name-closures 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 7 /gdbus/bus-watch-name-closures-auto-start 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-watch-different-context/.dirs/runtime 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 8 /gdbus/bus-watch-different-context 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/bus-unwatch-early/.dirs/runtime 1044s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1044s ok 9 /gdbus/bus-unwatch-early 1044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/home 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/cache 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/system-config2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/config 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/system-data2 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/data 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/state 1044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_ULQA62/gdbus/escape-object-path/.dirs/runtime 1044s ok 10 /gdbus/escape-object-path 1044s # End of gdbus tests 1044s ok - glib/gdbus-names.test 1044s # Running test: glib/testing.test 1044s TAP version 14 1044s # random seed: R02S295f46d256b437952c4a9c680eb07108 1044s 1..1 1044s # Start of assert tests 1044s ok 1 /assert/finalize_object 1044s # Start of finalize_object tests 1044s # Start of subprocess tests 1044s # End of subprocess tests 1044s # End of finalize_object tests 1044s # End of assert tests 1044s ok - glib/testing.test 1044s # Running test: glib/mappedfile.test 1044s TAP version 14 1044s # random seed: R02Sd6225bdaa9bdceac1cea51a0f3bcc0c2 1044s 1..7 1044s # Start of mappedfile tests 1044s ok 1 /mappedfile/basic 1044s ok 2 /mappedfile/empty 1044s ok 3 /mappedfile/device 1044s ok 4 /mappedfile/nonexisting 1044s ok 5 /mappedfile/writable 1044s ok 6 /mappedfile/writable_fd 1044s ok 7 /mappedfile/gbytes 1044s # End of mappedfile tests 1044s ok - glib/mappedfile.test 1044s # Running test: glib/basics-gobject.test 1044s TAP version 14 1044s # random seed: R02S3959c81139fb55959475bcb1f750a1e7 1044s 1..1 1044s # Start of gobject tests 1044s # private data during initialization: 54321 == 54321 1044s # MAIN: emit test-signal: 1044s # ::test_signal default_handler called 1044s # ::test_signal default_handler called 1044s # ::test_signal default_handler called 1044s # signal return: "" 1044s # MAIN: call iface print-string on test and derived object: 1044s # Iface-FOO: "iface-string-from-test-type" from 0x153ca2f4f260 1044s # Iface-BAR: "iface-string-from-derived-type" from 0x153ca2f44820 1044s # chaining: 1044s # Iface-FOO: "iface-string-from-derived-type" from 0x153ca2f44820 1044s # private data after initialization: 54321 == 54321 1044s ok 1 /gobject/basics 1044s # End of gobject tests 1044s ok - glib/basics-gobject.test 1044s # Running test: glib/singleton.test 1044s TAP version 14 1044s # random seed: R02Sad270f0d2aeee8cd0ad2f5f85c1d4906 1044s 1..2 1044s # Start of gobject tests 1044s # Start of singleton tests 1044s ok 1 /gobject/singleton/construction 1044s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1044s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1044s ok 2 /gobject/singleton/construct-property 1044s # End of singleton tests 1044s # End of gobject tests 1044s ok - glib/singleton.test 1044s # Running test: glib/unix-streams.test 1044s TAP version 14 1044s # random seed: R02S63cb532f011de9d843c17ccb2bfdf074 1044s 1..9 1044s # Start of unix-streams tests 1044s ok 1 /unix-streams/basic 1045s ok 2 /unix-streams/pipe-io-test 1045s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1045s ok 3 /unix-streams/nonblocking-io-test 1045s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1045s ok 4 /unix-streams/read_write 1045s ok 5 /unix-streams/read_writev 1045s ok 6 /unix-streams/write-wouldblock 1045s ok 7 /unix-streams/writev-wouldblock 1045s ok 8 /unix-streams/write-async-wouldblock 1045s ok 9 /unix-streams/writev-async-wouldblock 1045s # End of unix-streams tests 1045s ok - glib/unix-streams.test 1045s # Running test: glib/binding.test 1045s TAP version 14 1045s # random seed: R02S01cf030a995350c3c658479cb7a416bb 1045s 1..19 1045s # Start of binding tests 1045s ok 1 /binding/default 1045s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1045s ok 2 /binding/canonicalisation 1045s ok 3 /binding/bidirectional 1045s ok 4 /binding/transform 1045s ok 5 /binding/transform-default 1045s ok 6 /binding/transform-closure 1045s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1045s ok 7 /binding/chain 1045s ok 8 /binding/sync-create 1045s ok 9 /binding/invert-boolean 1045s ok 10 /binding/same-object 1045s ok 11 /binding/unbind 1045s ok 12 /binding/unbind-weak 1045s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1045s ok 13 /binding/unbind-multiple 1045s ok 14 /binding/fail 1045s ok 15 /binding/interface 1045s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1045s ok 16 /binding/concurrent-unbind 1045s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1045s ok 17 /binding/concurrent-finalizing 1045s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1045s ok 18 /binding/dispose-source 1045s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1045s ok 19 /binding/dispose-target 1045s # End of binding tests 1045s ok - glib/binding.test 1045s # Running test: glib/charset.test 1045s ok - glib/charset.test 1045s # Running test: glib/relation.test 1045s TAP version 14 1045s # random seed: R02Se19d2b114459f1aefcbf92546c7faa9f 1045s 1..2 1045s # Start of charset tests 1045s # Test 0 1045s # Test 1 1045s # Test 2 1045s # Test 3 1045s ok 1 /charset/language_names_with_category 1045s ok 2 /charset/language_names_with_category_async 1045s # End of charset tests 1045s TAP version 14 1045s # random seed: R02S8502e6585af4ab2a34a1f628cd920f7d 1045s 1..1 1045s # Start of glib tests 1045s ok 1 /glib/relation 1045s # End of glib tests 1045s ok - glib/relation.test 1045s # Running test: glib/file-thumbnail.test 1045s TAP version 14 1045s # random seed: R02S6fe46c7d26b6b9de82921a880e4c0905 1045s 1..7 1045s # Start of file-thumbnail tests 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/runtime 1045s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 1 /file-thumbnail/fail 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 2 /file-thumbnail/size-priority 1045s # Start of valid tests 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 3 /file-thumbnail/valid/normal 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 4 /file-thumbnail/valid/large 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 5 /file-thumbnail/valid/x-large 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 6 /file-thumbnail/valid/xx-large 1045s # End of valid tests 1045s # Start of unknown tests 1045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/home 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/cache 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/system-config2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/config 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/system-data2 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/data 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/state 1045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/runtime 1045s # Created test thumbnail at /tmp/test_file-thumbnail_FHL652/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1045s ok 7 /file-thumbnail/unknown/super-large 1045s # End of unknown tests 1045s # End of file-thumbnail tests 1045s ok - glib/file-thumbnail.test 1045s # Running test: glib/timer.test 1045s TAP version 14 1045s # random seed: R02S028fb08331a42962b65312300b707d05 1045s 1..10 1045s # Start of timer tests 1045s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1045s ok 2 /timer/stop 1045s ok 3 /timer/continue 1045s ok 4 /timer/reset 1045s ok 5 /timer/is_active 1045s # End of timer tests 1045s # Start of timeval tests 1045s ok 6 /timeval/add 1045s ok 7 /timeval/from-iso8601 1045s ok 8 /timeval/to-iso8601 1045s # Start of to-iso8601 tests 1045s ok 9 /timeval/to-iso8601/overflow 1045s # End of to-iso8601 tests 1045s # End of timeval tests 1045s # Start of usleep tests 1045s ok 10 /usleep/with-zero-wait 1045s # End of usleep tests 1045s ok - glib/timer.test 1045s # Running test: glib/gi-inspect-typelib.py.test 1045s TAP version 13 1045s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmp7rrjr4ln 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1045s # Return code: 0 1045s # Output: 1045s # Usage: 1045s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1045s # 1045s # Help Options: 1045s # -h, --help Show help options 1045s # 1045s # Application Options: 1045s # --typelib-version=VERSION Typelib version to inspect 1045s # --print-shlibs List the shared libraries the typelib requires 1045s # --print-typelibs List other typelibs the inspected typelib requires 1045s # Error: 1045s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpl677lkhr 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1045s # Return code: 1 1045s # Output: 1045s # 1045s # Error: 1045s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1045s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpdg7vvs95 1045s # Running: ['/usr/bin/gi-inspect-typelib'] 1045s # Return code: 1 1045s # Output: 1045s # 1045s # Error: 1045s # Please specify exactly one namespace 1045s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpbop15e18 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgobject-2.0.so.0 1045s # shlib: libglib-2.0.so.0 1045s # Error: 1045s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpy0p9hthb 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # 1045s # Error: 1045s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmp0e2hm6pf 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgobject-2.0.so.0 1045s # shlib: libglib-2.0.so.0 1045s # Error: 1045s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmphokbngnc 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgobject-2.0.so.0 1045s # Error: 1045s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpaz3tl6r3 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # typelib: GLib-2.0 1045s # Error: 1045s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpqvi5p3_2 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgobject-2.0.so.0 1045s # typelib: GLib-2.0 1045s # Error: 1045s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmpeo64i61v 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgio-2.0.so.0 1045s # Error: 1045s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmp0d81liwf 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # typelib: GObject-2.0 1045s # typelib: GLib-2.0 1045s # typelib: GModule-2.0 1045s # Error: 1045s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1045s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1045s # tmpdir: /tmp/tmp3qig8z28 1045s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1045s # Return code: 0 1045s # Output: 1045s # shlib: libgio-2.0.so.0 1045s # typelib: GObject-2.0 1045s # typelib: GLib-2.0 1045s # typelib: GModule-2.0 1045s # Error: 1045s 1..12 1045s ok - glib/gi-inspect-typelib.py.test 1045s # Running test: glib/buffered-output-stream.test 1045s TAP version 14 1045s # random seed: R02S236c464b843d62d3294213dbe2341951 1045s 1..5 1045s # Start of buffered-output-stream tests 1045s ok 1 /buffered-output-stream/write 1045s ok 2 /buffered-output-stream/grow 1045s ok 3 /buffered-output-stream/seek 1045s ok 4 /buffered-output-stream/truncate 1045s # End of buffered-output-stream tests 1045s # Start of filter-output-stream tests 1045s ok 5 /filter-output-stream/close 1045s # End of filter-output-stream tests 1045s ok - glib/buffered-output-stream.test 1045s # Running test: glib/rand.test 1045s TAP version 14 1045s # random seed: R02S86abb1e9c761e54a82eca376d98e65b4 1045s 1..2 1045s # Start of rand tests 1046s ok - glib/rand.test 1046s ok 1 /rand/test-rand 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1046s ok 2 /rand/double-range 1046s # End of rand tests 1046s # Running test: glib/defaultiface.test 1046s TAP version 14 1046s # random seed: R02S5e1dfda51a2106a13c94acef78e47acb 1046s 1..2 1046s # Start of gobject tests 1046s ok 1 /gobject/static-iface 1046s ok 2 /gobject/dynamic-iface 1046s # End of gobject tests 1046s ok - glib/defaultiface.test 1046s # Running test: glib/utils-isolated.test 1046s TAP version 14 1046s # random seed: R02S0572cdef6f639f62f5d9eaa3f702af0f 1046s 1..11 1046s # Start of utils-isolated tests 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/tmp-dir/.dirs/runtime 1046s ok 1 /utils-isolated/tmp-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/home-dir/.dirs/runtime 1046s ok 2 /utils-isolated/home-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/user-cache-dir/.dirs/runtime 1046s ok 3 /utils-isolated/user-cache-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/system-config-dirs/.dirs/runtime 1046s ok 4 /utils-isolated/system-config-dirs 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/user-config-dir/.dirs/runtime 1046s ok 5 /utils-isolated/user-config-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/system-data-dirs/.dirs/runtime 1046s ok 6 /utils-isolated/system-data-dirs 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/user-data-dir/.dirs/runtime 1046s ok 7 /utils-isolated/user-data-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/user-state-dir/.dirs/runtime 1046s ok 8 /utils-isolated/user-state-dir 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/user-runtime-dir/.dirs/runtime 1046s ok 9 /utils-isolated/user-runtime-dir 1046s # Start of cleanup tests 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/runtime 1046s Unable to clean up temporary directory /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1046s Unable to clean up temporary directory /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1046s Unable to clean up temporary directory /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/handles-errors: Directory not empty 1046s ok 10 /utils-isolated/cleanup/handles-errors 1046s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1046s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1046s Unable to clean up temporary directory /tmp/test_utils-isolated_7BX352/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1046s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1046s # End of cleanup tests 1046s # End of utils-isolated tests 1046s ok - glib/utils-isolated.test 1046s # Running test: glib/spawn-path-search.test 1046s TAP version 14 1046s # random seed: R02Sea645a3656b6990b70621fd5771ccc5b 1046s 1..7 1046s # Start of spawn tests 1046s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1046s # 1046s # this is spawn-test-helper from glib/tests 1046s # 1046s ok 1 /spawn/do-not-search 1046s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1046s # 1046s # this is spawn-test-helper from path-test-subdir 1046s # 1046s ok 2 /spawn/search-path 1046s # /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. 1046s # 1046s # this is spawn-test-helper from path-test-subdir 1046s # 1046s ok 3 /spawn/search-path-from-envp 1046s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1046s # 1046s # this is spawn-test-helper from path-test-subdir 1046s # 1046s ok 4 /spawn/search-path-ambiguous 1046s # 1046s # this is spawn-test-helper from path-test-subdir 1046s # 1046s ok 5 /spawn/search-path-heap-allocation 1046s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1046s # 1046s # this is spawn-test-helper from glib/tests 1046s # 1046s ok 6 /spawn/search-path-fallback-in-environ 1046s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1046s # 1046s # this is spawn-test-helper from glib/tests 1046s # 1046s ok 7 /spawn/search-path-fallback-in-envp 1046s # End of spawn tests 1046s ok - glib/spawn-path-search.test 1046s # Running test: glib/search-utils.test 1046s TAP version 14 1046s # random seed: R02Sb61d545eecf85c6d3099a4118a5c402b 1046s # GLib-DEBUG: Current user locale: C.UTF-8 1046s 1..6 1046s # Start of search tests 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1046s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1046s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1046s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1046s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1046s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1046s ok 1 /search/basic 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1046s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1046s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1046s # GLib-DEBUG: 'AzaÃs' - 'Azais' should NOT match: OK 1046s # GLib-DEBUG: 'Azais' - 'AzaÃs' should match: OK 1046s ok 2 /search/composed 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1046s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1046s ok 3 /search/decomposed 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1046s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1046s ok 4 /search/turkish 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 1046s ok - glib/search-utils.test 1046s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 1046s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 1046s ok 5 /search/c_locale_unicode 1046s # GLib-DEBUG: Started 1046s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1046s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1046s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1046s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1046s ok 6 /search/multi_words 1046s # End of search tests 1046s # Running test: glib/markup.test 1046s ok - glib/markup.test 1046s TAP version 14 1046s # random seed: R02S5a05c9681b792e7ae39f64aa34a05a4c 1046s 1..1 1046s # Start of markup tests 1046s ok 1 /markup/stack 1046s # End of markup tests 1046s # Running test: glib/inet-address.test 1046s TAP version 14 1046s # random seed: R02S94852a6397135b25e30b592429d9ba09 1046s 1..11 1046s # Start of inet-address tests 1046s ok 1 /inet-address/parse 1046s ok 2 /inet-address/any 1046s ok 3 /inet-address/loopback 1046s ok 4 /inet-address/bytes 1046s ok 5 /inet-address/property 1046s # End of inet-address tests 1046s # Start of socket-address tests 1046s ok 6 /socket-address/basic 1046s ok 7 /socket-address/to-string 1046s # End of socket-address tests 1046s ok - glib/inet-address.test 1046s # Running test: glib/regex.test 1046s # Start of address-mask tests 1046s ok 8 /address-mask/parse 1046s ok 9 /address-mask/property 1046s ok 10 /address-mask/equal 1046s ok 11 /address-mask/match 1046s # End of address-mask tests 1046s TAP version 14 1046s # random seed: R02S079a891e9bc70fc994d7e5654d876cc9 1046s 1..848 1046s # Start of regex tests 1046s ok 1 /regex/properties 1046s ok 2 /regex/class 1046s ok 3 /regex/lookahead 1046s ok 4 /regex/lookbehind 1046s ok 5 /regex/subpattern 1046s ok 6 /regex/condition 1046s ok 7 /regex/recursion 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1046s ok 8 /regex/multiline 1046s ok 9 /regex/explicit-crlf 1046s ok 10 /regex/max-lookbehind 1046s ok 11 /regex/compile-errors 1046s ok 12 /regex/jit-unsupported-matching 1046s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1046s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1046s ok 13 /regex/unmatched-named-subpattern 1046s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1046s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1046s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1046s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1046s ok 14 /regex/compiled-regex-after-jit-failure 1046s # Start of new tests 1046s ok 15 /regex/new/1 1046s ok 16 /regex/new/2 1046s ok 17 /regex/new/3 1046s ok 18 /regex/new/4 1046s ok 19 /regex/new/5 1046s ok 20 /regex/new/6 1046s ok 21 /regex/new/7 1046s ok 22 /regex/new/8 1046s ok 23 /regex/new/9 1046s ok 24 /regex/new/10 1046s ok 25 /regex/new/11 1046s ok 26 /regex/new/12 1046s ok 27 /regex/new/13 1046s ok 28 /regex/new/14 1046s ok 29 /regex/new/15 1046s ok 30 /regex/new/16 1046s ok 31 /regex/new/17 1046s ok 32 /regex/new/18 1046s ok 33 /regex/new/19 1046s ok 34 /regex/new/71 1046s ok 35 /regex/new/80 1046s ok 36 /regex/new/82 1046s # End of new tests 1046s # Start of new-check-flags tests 1046s ok 37 /regex/new-check-flags/20 1046s ok 38 /regex/new-check-flags/21 1046s ok 39 /regex/new-check-flags/22 1046s ok 40 /regex/new-check-flags/23 1046s ok 41 /regex/new-check-flags/24 1046s ok 42 /regex/new-check-flags/25 1046s ok 43 /regex/new-check-flags/26 1046s ok 44 /regex/new-check-flags/27 1046s ok 45 /regex/new-check-flags/28 1046s ok 46 /regex/new-check-flags/29 1046s ok 47 /regex/new-check-flags/30 1046s ok 48 /regex/new-check-flags/31 1046s ok 49 /regex/new-check-flags/32 1046s ok 50 /regex/new-check-flags/33 1046s ok 51 /regex/new-check-flags/34 1046s ok 52 /regex/new-check-flags/35 1046s ok 53 /regex/new-check-flags/36 1046s # End of new-check-flags tests 1046s # Start of new-fail tests 1046s ok 54 /regex/new-fail/37 1046s ok 55 /regex/new-fail/38 1046s ok 56 /regex/new-fail/39 1046s ok 57 /regex/new-fail/40 1046s ok 58 /regex/new-fail/41 1046s ok 59 /regex/new-fail/42 1046s ok 60 /regex/new-fail/43 1046s ok 61 /regex/new-fail/44 1046s ok 62 /regex/new-fail/45 1046s ok 63 /regex/new-fail/46 1046s ok 64 /regex/new-fail/47 1046s ok 65 /regex/new-fail/48 1046s ok 66 /regex/new-fail/49 1046s ok 67 /regex/new-fail/50 1046s ok 68 /regex/new-fail/51 1046s ok 69 /regex/new-fail/52 1046s ok 70 /regex/new-fail/53 1046s ok 71 /regex/new-fail/54 1046s ok 72 /regex/new-fail/55 1046s ok 73 /regex/new-fail/56 1046s ok 74 /regex/new-fail/57 1046s ok 75 /regex/new-fail/58 1046s ok 76 /regex/new-fail/59 1046s ok 77 /regex/new-fail/60 1046s ok 78 /regex/new-fail/61 1046s ok 79 /regex/new-fail/62 1046s ok 80 /regex/new-fail/63 1046s ok 81 /regex/new-fail/64 1046s ok 82 /regex/new-fail/65 1046s ok 83 /regex/new-fail/66 1046s ok 84 /regex/new-fail/67 1046s ok 85 /regex/new-fail/68 1046s ok 86 /regex/new-fail/69 1046s ok 87 /regex/new-fail/70 1046s ok 88 /regex/new-fail/72 1046s ok 89 /regex/new-fail/73 1046s ok 90 /regex/new-fail/74 1046s ok 91 /regex/new-fail/75 1046s ok 92 /regex/new-fail/76 1046s ok 93 /regex/new-fail/77 1046s ok 94 /regex/new-fail/78 1046s ok 95 /regex/new-fail/79 1046s ok 96 /regex/new-fail/81 1046s ok 97 /regex/new-fail/83 1046s ok 98 /regex/new-fail/84 1046s ok 99 /regex/new-fail/85 1046s ok 100 /regex/new-fail/86 1046s ok 101 /regex/new-fail/87 1046s ok 102 /regex/new-fail/88 1046s ok 103 /regex/new-fail/89 1046s ok 104 /regex/new-fail/90 1046s ok 105 /regex/new-fail/91 1046s # End of new-fail tests 1046s # Start of match-simple tests 1046s ok 106 /regex/match-simple/92 1046s ok 107 /regex/match-simple/93 1046s ok 108 /regex/match-simple/94 1046s ok 109 /regex/match-simple/95 1046s ok 110 /regex/match-simple/96 1046s ok 111 /regex/match-simple/97 1046s ok 112 /regex/match-simple/98 1046s ok 113 /regex/match-simple/99 1046s ok 114 /regex/match-simple/100 1046s ok 115 /regex/match-simple/101 1046s ok 116 /regex/match-simple/102 1046s ok 117 /regex/match-simple/103 1046s ok 118 /regex/match-simple/104 1046s ok 119 /regex/match-simple/105 1046s ok 120 /regex/match-simple/106 1046s ok 121 /regex/match-simple/107 1046s ok 122 /regex/match-simple/108 1046s ok 123 /regex/match-simple/109 1046s ok 124 /regex/match-simple/110 1046s ok 125 /regex/match-simple/111 1046s ok 126 /regex/match-simple/112 1046s ok 127 /regex/match-simple/113 1046s ok 128 /regex/match-simple/114 1046s ok 129 /regex/match-simple/115 1046s ok 130 /regex/match-simple/116 1046s ok 131 /regex/match-simple/117 1046s ok 132 /regex/match-simple/118 1046s ok 133 /regex/match-simple/119 1046s ok 134 /regex/match-simple/120 1046s ok 135 /regex/match-simple/121 1046s ok 136 /regex/match-simple/122 1046s ok 137 /regex/match-simple/123 1046s ok 138 /regex/match-simple/124 1046s ok 139 /regex/match-simple/125 1046s ok 140 /regex/match-simple/126 1046s ok 141 /regex/match-simple/127 1046s ok 142 /regex/match-simple/128 1046s ok 143 /regex/match-simple/129 1046s ok 144 /regex/match-simple/130 1046s ok 145 /regex/match-simple/131 1046s ok 146 /regex/match-simple/132 1046s ok 147 /regex/match-simple/133 1046s ok 148 /regex/match-simple/134 1046s ok 149 /regex/match-simple/135 1046s ok 150 /regex/match-simple/136 1046s ok 151 /regex/match-simple/137 1046s ok 152 /regex/match-simple/138 1046s ok 153 /regex/match-simple/139 1046s ok 154 /regex/match-simple/140 1046s ok 155 /regex/match-simple/141 1046s ok 156 /regex/match-simple/142 1046s ok 157 /regex/match-simple/143 1046s ok 158 /regex/match-simple/144 1046s ok 159 /regex/match-simple/145 1046s ok 160 /regex/match-simple/146 1046s ok 161 /regex/match-simple/147 1046s ok 162 /regex/match-simple/148 1046s ok 163 /regex/match-simple/149 1046s ok 164 /regex/match-simple/150 1046s ok 165 /regex/match-simple/151 1046s ok 166 /regex/match-simple/152 1046s ok 167 /regex/match-simple/153 1046s ok 168 /regex/match-simple/154 1046s ok 169 /regex/match-simple/155 1046s ok 170 /regex/match-simple/156 1046s ok 171 /regex/match-simple/157 1046s ok 172 /regex/match-simple/158 1046s ok 173 /regex/match-simple/159 1046s ok 174 /regex/match-simple/160 1046s ok 175 /regex/match-simple/161 1046s ok 176 /regex/match-simple/162 1046s ok 177 /regex/match-simple/163 1046s ok 178 /regex/match-simple/164 1046s # End of match-simple tests 1046s # Start of match-simple-optimized tests 1046s ok 179 /regex/match-simple-optimized/92 1046s ok 180 /regex/match-simple-optimized/93 1046s ok 181 /regex/match-simple-optimized/94 1046s ok 182 /regex/match-simple-optimized/95 1046s ok 183 /regex/match-simple-optimized/96 1046s ok 184 /regex/match-simple-optimized/97 1046s ok 185 /regex/match-simple-optimized/98 1046s ok 186 /regex/match-simple-optimized/99 1046s ok 187 /regex/match-simple-optimized/100 1046s ok 188 /regex/match-simple-optimized/101 1046s ok 189 /regex/match-simple-optimized/102 1046s ok 190 /regex/match-simple-optimized/103 1046s ok 191 /regex/match-simple-optimized/104 1046s ok 192 /regex/match-simple-optimized/105 1046s ok 193 /regex/match-simple-optimized/106 1046s ok 194 /regex/match-simple-optimized/107 1046s ok 195 /regex/match-simple-optimized/108 1046s ok 196 /regex/match-simple-optimized/109 1046s ok 197 /regex/match-simple-optimized/110 1046s ok 198 /regex/match-simple-optimized/111 1046s ok 199 /regex/match-simple-optimized/112 1046s ok 200 /regex/match-simple-optimized/113 1046s ok 201 /regex/match-simple-optimized/114 1046s ok 202 /regex/match-simple-optimized/115 1046s ok 203 /regex/match-simple-optimized/116 1046s ok 204 /regex/match-simple-optimized/117 1046s ok 205 /regex/match-simple-optimized/118 1046s ok 206 /regex/match-simple-optimized/119 1046s ok 207 /regex/match-simple-optimized/120 1046s ok 208 /regex/match-simple-optimized/121 1046s ok 209 /regex/match-simple-optimized/122 1046s ok 210 /regex/match-simple-optimized/123 1046s ok 211 /regex/match-simple-optimized/124 1046s ok 212 /regex/match-simple-optimized/125 1046s ok 213 /regex/match-simple-optimized/126 1046s ok 214 /regex/match-simple-optimized/127 1046s ok 215 /regex/match-simple-optimized/128 1046s ok 216 /regex/match-simple-optimized/129 1046s ok 217 /regex/match-simple-optimized/130 1046s ok 218 /regex/match-simple-optimized/131 1046s ok 219 /regex/match-simple-optimized/132 1046s ok 220 /regex/match-simple-optimized/133 1046s ok 221 /regex/match-simple-optimized/134 1046s ok 222 /regex/match-simple-optimized/135 1046s ok 223 /regex/match-simple-optimized/136 1046s ok 224 /regex/match-simple-optimized/137 1046s ok 225 /regex/match-simple-optimized/138 1046s ok 226 /regex/match-simple-optimized/139 1046s ok 227 /regex/match-simple-optimized/140 1046s ok 228 /regex/match-simple-optimized/141 1046s ok 229 /regex/match-simple-optimized/142 1046s ok 230 /regex/match-simple-optimized/143 1046s ok 231 /regex/match-simple-optimized/144 1046s ok 232 /regex/match-simple-optimized/145 1046s ok 233 /regex/match-simple-optimized/146 1046s ok 234 /regex/match-simple-optimized/147 1046s ok 235 /regex/match-simple-optimized/148 1046s ok 236 /regex/match-simple-optimized/149 1046s ok 237 /regex/match-simple-optimized/150 1046s ok 238 /regex/match-simple-optimized/151 1046s ok 239 /regex/match-simple-optimized/152 1046s ok 240 /regex/match-simple-optimized/153 1046s ok 241 /regex/match-simple-optimized/154 1046s ok 242 /regex/match-simple-optimized/155 1046s ok 243 /regex/match-simple-optimized/156 1046s ok 244 /regex/match-simple-optimized/157 1046s ok 245 /regex/match-simple-optimized/158 1046s ok 246 /regex/match-simple-optimized/159 1046s ok 247 /regex/match-simple-optimized/160 1046s ok 248 /regex/match-simple-optimized/161 1046s ok 249 /regex/match-simple-optimized/162 1046s ok 250 /regex/match-simple-optimized/163 1046s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1046s ok 251 /regex/match-simple-optimized/164 1046s # End of match-simple-optimized tests 1046s # Start of match tests 1046s ok 252 /regex/match/165 1046s ok 253 /regex/match/166 1046s ok 254 /regex/match/167 1046s ok 255 /regex/match/168 1046s ok 256 /regex/match/169 1046s ok 257 /regex/match/170 1046s ok 258 /regex/match/171 1046s ok 259 /regex/match/172 1046s ok 260 /regex/match/173 1046s ok 261 /regex/match/174 1046s ok 262 /regex/match/175 1046s ok 263 /regex/match/176 1046s ok 264 /regex/match/177 1046s ok 265 /regex/match/178 1046s ok 266 /regex/match/179 1046s ok 267 /regex/match/180 1046s ok 268 /regex/match/181 1046s ok 269 /regex/match/182 1046s ok 270 /regex/match/183 1046s ok 271 /regex/match/184 1046s ok 272 /regex/match/185 1046s ok 273 /regex/match/186 1046s ok 274 /regex/match/187 1046s ok 275 /regex/match/188 1046s ok 276 /regex/match/189 1046s ok 277 /regex/match/190 1046s ok 278 /regex/match/191 1046s ok 279 /regex/match/192 1046s ok 280 /regex/match/193 1046s ok 281 /regex/match/194 1046s ok 282 /regex/match/195 1046s ok 283 /regex/match/196 1046s ok 284 /regex/match/197 1046s ok 285 /regex/match/198 1046s ok 286 /regex/match/199 1046s ok 287 /regex/match/200 1046s ok 288 /regex/match/201 1046s ok 289 /regex/match/202 1046s ok 290 /regex/match/203 1046s ok 291 /regex/match/204 1046s ok 292 /regex/match/205 1046s ok 293 /regex/match/206 1046s ok 294 /regex/match/207 1046s ok 295 /regex/match/208 1046s ok 296 /regex/match/209 1046s ok 297 /regex/match/210 1046s ok 298 /regex/match/211 1046s ok 299 /regex/match/212 1046s ok 300 /regex/match/213 1046s ok 301 /regex/match/214 1046s ok 302 /regex/match/215 1046s ok 303 /regex/match/216 1046s ok 304 /regex/match/217 1046s ok 305 /regex/match/218 1046s ok 306 /regex/match/219 1046s ok 307 /regex/match/220 1046s ok 308 /regex/match/221 1046s ok 309 /regex/match/222 1046s ok 310 /regex/match/223 1046s ok 311 /regex/match/224 1046s ok 312 /regex/match/225 1046s ok 313 /regex/match/226 1046s ok 314 /regex/match/227 1046s ok 315 /regex/match/228 1046s ok 316 /regex/match/229 1046s ok 317 /regex/match/230 1046s ok 318 /regex/match/231 1046s ok 319 /regex/match/232 1046s ok 320 /regex/match/233 1046s ok 321 /regex/match/234 1046s ok 322 /regex/match/235 1046s ok 323 /regex/match/236 1046s ok 324 /regex/match/237 1046s ok 325 /regex/match/238 1046s ok 326 /regex/match/239 1046s ok 327 /regex/match/240 1046s ok 328 /regex/match/241 1046s ok 329 /regex/match/242 1046s ok 330 /regex/match/243 1046s ok 331 /regex/match/244 1046s ok 332 /regex/match/245 1046s ok 333 /regex/match/246 1046s ok 334 /regex/match/partial281 1046s ok 335 /regex/match/partial282 1046s ok 336 /regex/match/partial283 1046s ok 337 /regex/match/partial284 1046s ok 338 /regex/match/partial285 1046s ok 339 /regex/match/partial286 1046s ok 340 /regex/match/partial287 1046s ok 341 /regex/match/partial288 1046s ok 342 /regex/match/partial289 1046s ok 343 /regex/match/partial290 1046s ok 344 /regex/match/partial291 1046s ok 345 /regex/match/partial292 1046s ok 346 /regex/match/partial293 1046s ok 347 /regex/match/partial294 1046s ok 348 /regex/match/partial295 1046s ok 349 /regex/match/partial296 1046s ok 350 /regex/match/partial297 1046s ok 351 /regex/match/partial298 1046s ok 352 /regex/match/partial299 1046s ok 353 /regex/match/partial300 1046s ok 354 /regex/match/partial301 1046s ok 355 /regex/match/partial302 1046s # Start of next0 tests 1046s ok 356 /regex/match/next0/247 1046s ok 357 /regex/match/next0/248 1046s ok 358 /regex/match/next0/249 1046s ok 359 /regex/match/next0/250 1046s # End of next0 tests 1046s # Start of next1 tests 1046s ok 360 /regex/match/next1/251 1046s ok 361 /regex/match/next1/252 1046s ok 362 /regex/match/next1/253 1046s ok 363 /regex/match/next1/254 1046s ok 364 /regex/match/next1/255 1046s # End of next1 tests 1046s # Start of next2 tests 1046s ok 365 /regex/match/next2/256 1046s ok 366 /regex/match/next2/257 1046s ok 367 /regex/match/next2/258 1046s ok 368 /regex/match/next2/259 1046s ok 369 /regex/match/next2/260 1046s ok 370 /regex/match/next2/261 1046s ok 371 /regex/match/next2/262 1046s ok 372 /regex/match/next2/263 1046s # End of next2 tests 1046s # Start of next3 tests 1046s ok 373 /regex/match/next3/264 1046s ok 374 /regex/match/next3/265 1046s ok 375 /regex/match/next3/266 1046s ok 376 /regex/match/next3/267 1046s ok 377 /regex/match/next3/268 1046s ok 378 /regex/match/next3/269 1046s # End of next3 tests 1046s # Start of next4 tests 1046s ok 379 /regex/match/next4/270 1046s # End of next4 tests 1046s # Start of count tests 1046s ok 380 /regex/match/count/271 1046s ok 381 /regex/match/count/272 1046s ok 382 /regex/match/count/273 1046s ok 383 /regex/match/count/274 1046s ok 384 /regex/match/count/275 1046s ok 385 /regex/match/count/276 1046s ok 386 /regex/match/count/277 1046s ok 387 /regex/match/count/278 1046s ok 388 /regex/match/count/279 1046s ok 389 /regex/match/count/280 1046s # End of count tests 1046s # Start of count-optimized tests 1046s ok 390 /regex/match/count-optimized/271 1046s ok 391 /regex/match/count-optimized/272 1046s ok 392 /regex/match/count-optimized/273 1046s ok 393 /regex/match/count-optimized/274 1046s ok 394 /regex/match/count-optimized/275 1046s ok 395 /regex/match/count-optimized/276 1046s ok 396 /regex/match/count-optimized/277 1046s ok 397 /regex/match/count-optimized/278 1046s ok 398 /regex/match/count-optimized/279 1046s ok 399 /regex/match/count-optimized/280 1046s # End of count-optimized tests 1046s # Start of partial-optimized tests 1046s ok 400 /regex/match/partial-optimized/281 1046s ok 401 /regex/match/partial-optimized/282 1046s ok 402 /regex/match/partial-optimized/283 1046s ok 403 /regex/match/partial-optimized/284 1046s ok 404 /regex/match/partial-optimized/285 1046s ok 405 /regex/match/partial-optimized/286 1046s ok 406 /regex/match/partial-optimized/287 1046s ok 407 /regex/match/partial-optimized/288 1046s ok 408 /regex/match/partial-optimized/289 1046s ok 409 /regex/match/partial-optimized/290 1046s ok 410 /regex/match/partial-optimized/291 1046s ok 411 /regex/match/partial-optimized/292 1046s ok 412 /regex/match/partial-optimized/293 1046s ok 413 /regex/match/partial-optimized/294 1046s ok 414 /regex/match/partial-optimized/295 1046s ok 415 /regex/match/partial-optimized/296 1046s ok 416 /regex/match/partial-optimized/297 1046s ok 417 /regex/match/partial-optimized/298 1046s ok 418 /regex/match/partial-optimized/299 1046s ok 419 /regex/match/partial-optimized/300 1046s ok 420 /regex/match/partial-optimized/301 1046s ok 421 /regex/match/partial-optimized/302 1046s # End of partial-optimized tests 1046s # Start of subpattern tests 1046s ok 422 /regex/match/subpattern/303 1046s ok 423 /regex/match/subpattern/304 1046s ok 424 /regex/match/subpattern/305 1046s ok 425 /regex/match/subpattern/306 1046s ok 426 /regex/match/subpattern/307 1046s ok 427 /regex/match/subpattern/308 1046s ok 428 /regex/match/subpattern/309 1046s ok 429 /regex/match/subpattern/310 1046s ok 430 /regex/match/subpattern/311 1046s ok 431 /regex/match/subpattern/312 1046s ok 432 /regex/match/subpattern/313 1046s ok 433 /regex/match/subpattern/314 1046s ok 434 /regex/match/subpattern/315 1046s # Start of named tests 1046s # Start of dupnames tests 1046s ok 435 /regex/match/subpattern/named/dupnames/325 1046s ok 436 /regex/match/subpattern/named/dupnames/326 1046s ok 437 /regex/match/subpattern/named/dupnames/327 1046s ok 438 /regex/match/subpattern/named/dupnames/328 1046s ok 439 /regex/match/subpattern/named/dupnames/329 1046s # End of dupnames tests 1046s # End of named tests 1046s # End of subpattern tests 1046s # Start of subpattern-optimized tests 1046s ok 440 /regex/match/subpattern-optimized/303 1046s ok 441 /regex/match/subpattern-optimized/304 1046s ok 442 /regex/match/subpattern-optimized/305 1046s ok 443 /regex/match/subpattern-optimized/306 1046s ok 444 /regex/match/subpattern-optimized/307 1046s ok 445 /regex/match/subpattern-optimized/308 1046s ok 446 /regex/match/subpattern-optimized/309 1046s ok 447 /regex/match/subpattern-optimized/310 1046s ok 448 /regex/match/subpattern-optimized/311 1046s ok 449 /regex/match/subpattern-optimized/312 1046s ok 450 /regex/match/subpattern-optimized/313 1046s ok 451 /regex/match/subpattern-optimized/314 1046s ok 452 /regex/match/subpattern-optimized/315 1046s # End of subpattern-optimized tests 1046s # Start of named tests 1046s # Start of subpattern tests 1046s ok 453 /regex/match/named/subpattern/316 1046s ok 454 /regex/match/named/subpattern/317 1046s ok 455 /regex/match/named/subpattern/318 1046s ok 456 /regex/match/named/subpattern/319 1046s ok 457 /regex/match/named/subpattern/320 1046s ok 458 /regex/match/named/subpattern/321 1046s ok 459 /regex/match/named/subpattern/322 1046s ok 460 /regex/match/named/subpattern/323 1046s ok 461 /regex/match/named/subpattern/324 1046s ok 462 /regex/match/named/subpattern/330 1046s ok 463 /regex/match/named/subpattern/331 1046s ok 464 /regex/match/named/subpattern/332 1046s ok 465 /regex/match/named/subpattern/333 1046s ok 466 /regex/match/named/subpattern/334 1046s # End of subpattern tests 1046s # End of named tests 1046s # End of match tests 1046s # Start of match-optimized tests 1046s ok 467 /regex/match-optimized/165 1046s ok 468 /regex/match-optimized/166 1046s ok 469 /regex/match-optimized/167 1046s ok 470 /regex/match-optimized/168 1046s ok 471 /regex/match-optimized/169 1046s ok 472 /regex/match-optimized/170 1046s ok 473 /regex/match-optimized/171 1046s ok 474 /regex/match-optimized/172 1046s ok 475 /regex/match-optimized/173 1046s ok 476 /regex/match-optimized/174 1046s ok 477 /regex/match-optimized/175 1046s ok 478 /regex/match-optimized/176 1046s ok 479 /regex/match-optimized/177 1046s ok 480 /regex/match-optimized/178 1046s ok 481 /regex/match-optimized/179 1046s ok 482 /regex/match-optimized/180 1046s ok 483 /regex/match-optimized/181 1046s ok 484 /regex/match-optimized/182 1046s ok 485 /regex/match-optimized/183 1046s ok 486 /regex/match-optimized/184 1046s ok 487 /regex/match-optimized/185 1046s ok 488 /regex/match-optimized/186 1046s ok 489 /regex/match-optimized/187 1046s ok 490 /regex/match-optimized/188 1046s ok 491 /regex/match-optimized/189 1046s ok 492 /regex/match-optimized/190 1046s ok 493 /regex/match-optimized/191 1046s ok 494 /regex/match-optimized/192 1046s ok 495 /regex/match-optimized/193 1046s ok 496 /regex/match-optimized/194 1046s ok 497 /regex/match-optimized/195 1046s ok 498 /regex/match-optimized/196 1046s ok 499 /regex/match-optimized/197 1046s ok 500 /regex/match-optimized/198 1046s ok 501 /regex/match-optimized/199 1046s ok 502 /regex/match-optimized/200 1046s ok 503 /regex/match-optimized/201 1046s ok 504 /regex/match-optimized/202 1046s ok 505 /regex/match-optimized/203 1046s ok 506 /regex/match-optimized/204 1046s ok 507 /regex/match-optimized/205 1046s ok 508 /regex/match-optimized/206 1046s ok 509 /regex/match-optimized/207 1046s ok 510 /regex/match-optimized/208 1046s ok 511 /regex/match-optimized/209 1046s ok 512 /regex/match-optimized/210 1046s ok 513 /regex/match-optimized/211 1046s ok 514 /regex/match-optimized/212 1046s ok 515 /regex/match-optimized/213 1046s ok 516 /regex/match-optimized/214 1046s ok 517 /regex/match-optimized/215 1046s ok 518 /regex/match-optimized/216 1046s ok 519 /regex/match-optimized/217 1046s ok 520 /regex/match-optimized/218 1046s ok 521 /regex/match-optimized/219 1046s ok 522 /regex/match-optimized/220 1046s ok 523 /regex/match-optimized/221 1046s ok 524 /regex/match-optimized/222 1046s ok 525 /regex/match-optimized/223 1046s ok 526 /regex/match-optimized/224 1046s ok 527 /regex/match-optimized/225 1046s ok 528 /regex/match-optimized/226 1046s ok 529 /regex/match-optimized/227 1046s ok 530 /regex/match-optimized/228 1046s ok 531 /regex/match-optimized/229 1046s ok 532 /regex/match-optimized/230 1046s ok 533 /regex/match-optimized/231 1046s ok 534 /regex/match-optimized/232 1046s ok 535 /regex/match-optimized/233 1046s ok 536 /regex/match-optimized/234 1046s ok 537 /regex/match-optimized/235 1046s ok 538 /regex/match-optimized/236 1046s ok 539 /regex/match-optimized/237 1046s ok 540 /regex/match-optimized/238 1046s ok 541 /regex/match-optimized/239 1046s ok 542 /regex/match-optimized/240 1046s ok 543 /regex/match-optimized/241 1046s ok 544 /regex/match-optimized/242 1046s ok 545 /regex/match-optimized/243 1046s ok 546 /regex/match-optimized/244 1046s ok 547 /regex/match-optimized/245 1046s ok 548 /regex/match-optimized/246 1046s # End of match-optimized tests 1046s # Start of fetch-all0 tests 1046s ok 549 /regex/fetch-all0/335 1046s ok 550 /regex/fetch-all0/336 1046s # End of fetch-all0 tests 1046s # Start of fetch-all1 tests 1046s ok 551 /regex/fetch-all1/337 1046s ok 552 /regex/fetch-all1/338 1046s ok 553 /regex/fetch-all1/339 1046s # End of fetch-all1 tests 1046s # Start of fetch-all2 tests 1046s ok 554 /regex/fetch-all2/340 1046s ok 555 /regex/fetch-all2/341 1046s ok 556 /regex/fetch-all2/342 1046s # End of fetch-all2 tests 1046s # Start of fetch-all3 tests 1046s ok 557 /regex/fetch-all3/343 1046s ok 558 /regex/fetch-all3/344 1046s ok 559 /regex/fetch-all3/345 1046s ok 560 /regex/fetch-all3/346 1046s ok 561 /regex/fetch-all3/347 1046s # End of fetch-all3 tests 1046s # Start of split tests 1046s # Start of simple0 tests 1046s ok 562 /regex/split/simple0/348 1046s ok 563 /regex/split/simple0/349 1046s ok 564 /regex/split/simple0/364 1046s ok 565 /regex/split/simple0/365 1046s # End of simple0 tests 1046s # Start of simple1 tests 1046s ok 566 /regex/split/simple1/350 1046s ok 567 /regex/split/simple1/351 1046s # End of simple1 tests 1046s # Start of simple2 tests 1046s ok 568 /regex/split/simple2/352 1046s ok 569 /regex/split/simple2/358 1046s ok 570 /regex/split/simple2/360 1046s # End of simple2 tests 1046s # Start of simple3 tests 1046s ok 571 /regex/split/simple3/353 1046s ok 572 /regex/split/simple3/354 1046s ok 573 /regex/split/simple3/355 1046s ok 574 /regex/split/simple3/356 1046s ok 575 /regex/split/simple3/357 1046s ok 576 /regex/split/simple3/359 1046s ok 577 /regex/split/simple3/361 1046s ok 578 /regex/split/simple3/362 1046s ok 579 /regex/split/simple3/363 1046s # End of simple3 tests 1046s # End of split tests 1046s # Start of split0 tests 1046s ok 580 /regex/split0/366 1046s ok 581 /regex/split0/368 1046s # End of split0 tests 1046s # Start of full-split0 tests 1046s ok 582 /regex/full-split0/367 1046s ok 583 /regex/full-split0/369 1046s ok 584 /regex/full-split0/370 1046s ok 585 /regex/full-split0/371 1046s ok 586 /regex/full-split0/372 1046s # End of full-split0 tests 1046s # Start of split1 tests 1046s ok 587 /regex/split1/373 1046s ok 588 /regex/split1/376 1046s # End of split1 tests 1046s # Start of full-split1 tests 1046s ok 589 /regex/full-split1/374 1046s ok 590 /regex/full-split1/375 1046s ok 591 /regex/full-split1/377 1046s ok 592 /regex/full-split1/378 1046s ok 593 /regex/full-split1/404 1046s # End of full-split1 tests 1046s # Start of split2 tests 1046s ok 594 /regex/split2/379 1046s ok 595 /regex/split2/383 1046s ok 596 /regex/split2/395 1046s # End of split2 tests 1046s # Start of full-split2 tests 1046s ok 597 /regex/full-split2/380 1046s ok 598 /regex/full-split2/381 1046s ok 599 /regex/full-split2/382 1046s ok 600 /regex/full-split2/384 1046s ok 601 /regex/full-split2/396 1046s ok 602 /regex/full-split2/399 1046s ok 603 /regex/full-split2/405 1046s # End of full-split2 tests 1046s # Start of split3 tests 1046s ok 604 /regex/split3/385 1046s ok 605 /regex/split3/387 1046s ok 606 /regex/split3/389 1046s ok 607 /regex/split3/391 1046s ok 608 /regex/split3/393 1046s ok 609 /regex/split3/397 1046s ok 610 /regex/split3/400 1046s ok 611 /regex/split3/402 1046s # End of split3 tests 1046s # Start of full-split3 tests 1046s ok 612 /regex/full-split3/386 1046s ok 613 /regex/full-split3/388 1046s ok 614 /regex/full-split3/390 1046s ok 615 /regex/full-split3/392 1046s ok 616 /regex/full-split3/394 1046s ok 617 /regex/full-split3/398 1046s ok 618 /regex/full-split3/401 1046s ok 619 /regex/full-split3/403 1046s ok 620 /regex/full-split3/406 1046s ok 621 /regex/full-split3/407 1046s # End of full-split3 tests 1046s # Start of check-repacement tests 1046s ok 622 /regex/check-repacement/408 1046s ok 623 /regex/check-repacement/409 1046s ok 624 /regex/check-repacement/410 1046s ok 625 /regex/check-repacement/411 1046s ok 626 /regex/check-repacement/412 1046s ok 627 /regex/check-repacement/413 1046s ok 628 /regex/check-repacement/414 1046s ok 629 /regex/check-repacement/415 1046s # End of check-repacement tests 1046s # Start of expand tests 1046s ok 630 /regex/expand/416 1046s ok 631 /regex/expand/417 1046s ok 632 /regex/expand/418 1046s ok 633 /regex/expand/419 1046s ok 634 /regex/expand/420 1046s ok 635 /regex/expand/421 1046s ok 636 /regex/expand/422 1046s ok 637 /regex/expand/423 1046s ok 638 /regex/expand/424 1046s ok 639 /regex/expand/425 1046s ok 640 /regex/expand/426 1046s ok 641 /regex/expand/427 1046s ok 642 /regex/expand/428 1046s ok 643 /regex/expand/429 1046s ok 644 /regex/expand/430 1046s ok 645 /regex/expand/431 1046s ok 646 /regex/expand/432 1046s ok 647 /regex/expand/433 1046s ok 648 /regex/expand/434 1046s ok 649 /regex/expand/435 1046s ok 650 /regex/expand/436 1046s ok 651 /regex/expand/437 1046s ok 652 /regex/expand/438 1046s ok 653 /regex/expand/439 1046s ok 654 /regex/expand/440 1046s ok 655 /regex/expand/441 1046s ok 656 /regex/expand/442 1046s ok 657 /regex/expand/443 1046s ok 658 /regex/expand/444 1046s ok 659 /regex/expand/445 1046s ok 660 /regex/expand/446 1046s ok 661 /regex/expand/447 1046s ok 662 /regex/expand/448 1046s ok 663 /regex/expand/449 1046s ok 664 /regex/expand/450 1046s ok 665 /regex/expand/451 1046s ok 666 /regex/expand/452 1046s ok 667 /regex/expand/453 1046s ok 668 /regex/expand/454 1046s ok 669 /regex/expand/455 1046s ok 670 /regex/expand/456 1046s ok 671 /regex/expand/457 1046s ok 672 /regex/expand/458 1046s ok 673 /regex/expand/459 1046s ok 674 /regex/expand/460 1046s ok 675 /regex/expand/461 1046s ok 676 /regex/expand/462 1046s ok 677 /regex/expand/463 1046s ok 678 /regex/expand/464 1046s ok 679 /regex/expand/465 1046s ok 680 /regex/expand/466 1046s ok 681 /regex/expand/467 1046s ok 682 /regex/expand/468 1046s ok 683 /regex/expand/469 1046s ok 684 /regex/expand/470 1046s ok 685 /regex/expand/471 1046s ok 686 /regex/expand/472 1046s ok 687 /regex/expand/473 1046s ok 688 /regex/expand/474 1046s ok 689 /regex/expand/475 1046s ok 690 /regex/expand/476 1046s ok 691 /regex/expand/477 1046s ok 692 /regex/expand/478 1046s ok 693 /regex/expand/479 1046s ok 694 /regex/expand/480 1046s ok 695 /regex/expand/481 1046s # End of expand tests 1046s # Start of replace tests 1046s ok 696 /regex/replace/482 1046s ok 697 /regex/replace/483 1046s ok 698 /regex/replace/484 1046s ok 699 /regex/replace/485 1046s ok 700 /regex/replace/486 1046s ok 701 /regex/replace/487 1046s ok 702 /regex/replace/488 1046s ok 703 /regex/replace/489 1046s ok 704 /regex/replace/490 1046s ok 705 /regex/replace/491 1046s ok 706 /regex/replace/492 1046s ok 707 /regex/replace/493 1046s ok 708 /regex/replace/494 1046s ok 709 /regex/replace/495 1046s ok 710 /regex/replace/496 1046s ok 711 /regex/replace/497 1046s ok 712 /regex/replace/498 1046s ok 713 /regex/replace/499 1046s ok 714 /regex/replace/500 1046s ok 715 /regex/replace/501 1046s ok 716 /regex/replace/502 1046s ok 717 /regex/replace/503 1046s ok 718 /regex/replace/504 1046s ok 719 /regex/replace/505 1046s ok 720 /regex/replace/506 1046s ok 721 /regex/replace/507 1046s ok 722 /regex/replace/508 1046s ok 723 /regex/replace/509 1046s # End of replace tests 1046s # Start of replace-optimized tests 1046s ok 724 /regex/replace-optimized/482 1046s ok 725 /regex/replace-optimized/483 1046s ok 726 /regex/replace-optimized/484 1046s ok 727 /regex/replace-optimized/485 1046s ok 728 /regex/replace-optimized/486 1046s ok 729 /regex/replace-optimized/487 1046s ok 730 /regex/replace-optimized/488 1046s ok 731 /regex/replace-optimized/489 1046s ok 732 /regex/replace-optimized/490 1046s ok 733 /regex/replace-optimized/491 1046s ok 734 /regex/replace-optimized/492 1046s ok 735 /regex/replace-optimized/493 1046s ok 736 /regex/replace-optimized/494 1046s ok 737 /regex/replace-optimized/495 1046s ok 738 /regex/replace-optimized/496 1046s ok 739 /regex/replace-optimized/497 1046s ok 740 /regex/replace-optimized/498 1046s ok 741 /regex/replace-optimized/499 1046s ok 742 /regex/replace-optimized/500 1046s ok 743 /regex/replace-optimized/501 1046s ok 744 /regex/replace-optimized/502 1046s ok 745 /regex/replace-optimized/503 1046s ok 746 /regex/replace-optimized/504 1046s ok 747 /regex/replace-optimized/505 1046s ok 748 /regex/replace-optimized/506 1046s ok 749 /regex/replace-optimized/507 1046s ok 750 /regex/replace-optimized/508 1046s ok 751 /regex/replace-optimized/509 1046s # End of replace-optimized tests 1046s # Start of replace-literally tests 1046s ok 752 /regex/replace-literally/510 1046s ok 753 /regex/replace-literally/511 1046s ok 754 /regex/replace-literally/512 1046s ok 755 /regex/replace-literally/513 1046s ok 756 /regex/replace-literally/514 1046s ok 757 /regex/replace-literally/515 1046s ok 758 /regex/replace-literally/516 1046s ok 759 /regex/replace-literally/517 1046s ok 760 /regex/replace-literally/518 1046s ok 761 /regex/replace-literally/519 1046s ok 762 /regex/replace-literally/520 1046s ok 763 /regex/replace-literally/521 1046s ok - glib/regex.test 1046s # Running test: glib/base64.test 1046s ok 764 /regex/replace-literally/522 1046s ok 765 /regex/replace-literally/523 1046s ok 766 /regex/replace-literally/524 1046s ok 767 /regex/replace-literally/525 1046s ok 768 /regex/replace-literally/526 1046s ok 769 /regex/replace-literally/527 1046s ok 770 /regex/replace-literally/528 1046s ok 771 /regex/replace-literally/529 1046s # End of replace-literally tests 1046s # Start of string-number tests 1046s ok 772 /regex/string-number/530 1046s ok 773 /regex/string-number/531 1046s ok 774 /regex/string-number/532 1046s ok 775 /regex/string-number/533 1046s ok 776 /regex/string-number/534 1046s ok 777 /regex/string-number/535 1046s ok 778 /regex/string-number/536 1046s ok 779 /regex/string-number/537 1046s ok 780 /regex/string-number/538 1046s ok 781 /regex/string-number/539 1046s ok 782 /regex/string-number/540 1046s ok 783 /regex/string-number/541 1046s ok 784 /regex/string-number/542 1046s ok 785 /regex/string-number/543 1046s ok 786 /regex/string-number/544 1046s # End of string-number tests 1046s # Start of escape_nul tests 1046s ok 787 /regex/escape_nul/545 1046s ok 788 /regex/escape_nul/546 1046s ok 789 /regex/escape_nul/547 1046s ok 790 /regex/escape_nul/548 1046s ok 791 /regex/escape_nul/549 1046s ok 792 /regex/escape_nul/550 1046s ok 793 /regex/escape_nul/551 1046s ok 794 /regex/escape_nul/552 1046s ok 795 /regex/escape_nul/553 1046s ok 796 /regex/escape_nul/554 1046s ok 797 /regex/escape_nul/555 1046s ok 798 /regex/escape_nul/556 1046s ok 799 /regex/escape_nul/557 1046s ok 800 /regex/escape_nul/558 1046s ok 801 /regex/escape_nul/559 1046s # End of escape_nul tests 1046s # Start of escape tests 1046s ok 802 /regex/escape/560 1046s ok 803 /regex/escape/561 1046s ok 804 /regex/escape/562 1046s ok 805 /regex/escape/563 1046s ok 806 /regex/escape/564 1046s ok 807 /regex/escape/565 1046s ok 808 /regex/escape/566 1046s ok 809 /regex/escape/567 1046s ok 810 /regex/escape/568 1046s ok 811 /regex/escape/569 1046s ok 812 /regex/escape/570 1046s ok 813 /regex/escape/571 1046s ok 814 /regex/escape/572 1046s ok 815 /regex/escape/573 1046s ok 816 /regex/escape/574 1046s ok 817 /regex/escape/575 1046s ok 818 /regex/escape/576 1046s ok 819 /regex/escape/577 1046s # End of escape tests 1046s # Start of match-all0 tests 1046s ok 820 /regex/match-all0/578 1046s ok 821 /regex/match-all0/580 1046s # End of match-all0 tests 1046s # Start of match-all-full0 tests 1046s ok 822 /regex/match-all-full0/579 1046s ok 823 /regex/match-all-full0/581 1046s ok 824 /regex/match-all-full0/582 1046s ok 825 /regex/match-all-full0/583 1046s # End of match-all-full0 tests 1046s # Start of match-all1 tests 1046s ok 826 /regex/match-all1/584 1046s ok 827 /regex/match-all1/586 1046s ok 828 /regex/match-all1/591 1046s # End of match-all1 tests 1046s # Start of match-all-full1 tests 1046s ok 829 /regex/match-all-full1/585 1046s ok 830 /regex/match-all-full1/587 1046s ok 831 /regex/match-all-full1/588 1046s ok 832 /regex/match-all-full1/589 1046s ok 833 /regex/match-all-full1/590 1046s ok 834 /regex/match-all-full1/592 1046s # End of match-all-full1 tests 1046s # Start of match-all2 tests 1046s ok 835 /regex/match-all2/593 1046s ok 836 /regex/match-all2/595 1046s ok 837 /regex/match-all2/597 1046s # End of match-all2 tests 1046s # Start of match-all-full2 tests 1046s ok 838 /regex/match-all-full2/594 1046s ok 839 /regex/match-all-full2/596 1046s ok 840 /regex/match-all-full2/598 1046s # End of match-all-full2 tests 1046s # Start of match-all3 tests 1046s ok 841 /regex/match-all3/599 1046s ok 842 /regex/match-all3/601 1046s # End of match-all3 tests 1046s # Start of match-all-full3 tests 1046s ok 843 /regex/match-all-full3/600 1046s ok 844 /regex/match-all-full3/602 1046s # End of match-all-full3 tests 1046s # Start of match-notempty tests 1046s ok 845 /regex/match-notempty/603 1046s # End of match-notempty tests 1046s # Start of match-notempty-optimized tests 1046s ok 846 /regex/match-notempty-optimized/603 1046s # End of match-notempty-optimized tests 1046s # Start of match-notempty-atstart tests 1046s ok 847 /regex/match-notempty-atstart/604 1046s # End of match-notempty-atstart tests 1046s # Start of match-notempty-atstart-optimized tests 1046s ok 848 /regex/match-notempty-atstart-optimized/604 1046s # End of match-notempty-atstart-optimized tests 1046s # End of regex tests 1046s TAP version 14 1046s # random seed: R02S01344a62338d79c34be0f4fed2e7e06a 1046s 1..28 1046s # Start of base64 tests 1046s ok 1 /base64/encode 1046s ok 2 /base64/decode 1046s ok 3 /base64/decode-inplace 1046s ok 4 /base64/encode-decode 1046s # Start of full tests 1046s ok 5 /base64/full/1 1046s ok 6 /base64/full/2 1046s ok 7 /base64/full/3 1046s ok 8 /base64/full/4 1046s # End of full tests 1046s # Start of encode tests 1046s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1046s ok 9 /base64/encode/empty 1046s ok - glib/base64.test 1046s # Running test: glib/mutex.test 1046s # Start of incremental tests 1046s # Start of small-block tests 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1046s ok 10 /base64/encode/incremental/small-block/1 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1046s ok 11 /base64/encode/incremental/small-block/2 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1046s ok 12 /base64/encode/incremental/small-block/3 1046s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1046s ok 13 /base64/encode/incremental/small-block/4 1046s # End of small-block tests 1046s # End of incremental tests 1046s # End of encode tests 1046s # Start of incremental tests 1046s # Start of nobreak tests 1046s ok 14 /base64/incremental/nobreak/1 1046s ok 15 /base64/incremental/nobreak/2 1046s ok 16 /base64/incremental/nobreak/3 1046s ok 17 /base64/incremental/nobreak/4-a 1046s ok 18 /base64/incremental/nobreak/4-b 1046s ok 19 /base64/incremental/nobreak/4-c 1046s # End of nobreak tests 1046s # Start of break tests 1046s ok 20 /base64/incremental/break/1 1046s ok 21 /base64/incremental/break/2 1046s ok 22 /base64/incremental/break/3 1046s # End of break tests 1046s # Start of smallblock tests 1046s ok 23 /base64/incremental/smallblock/1 1046s ok 24 /base64/incremental/smallblock/2 1046s ok 25 /base64/incremental/smallblock/3 1046s ok 26 /base64/incremental/smallblock/4 1046s # End of smallblock tests 1046s # End of incremental tests 1046s # Start of decode tests 1046s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1046s ok 27 /base64/decode/empty 1046s # End of decode tests 1046s # Start of encode-decode tests 1046s # Vector 0: 1046s # Vector 1: f 1046s # Vector 2: fo 1046s # Vector 3: foo 1046s # Vector 4: foob 1046s # Vector 5: fooba 1046s # Vector 6: foobar 1046s ok 28 /base64/encode-decode/rfc4648 1046s # End of encode-decode tests 1046s # End of base64 tests 1046s TAP version 14 1046s # random seed: R02Sc4abf13228049bbc021e863047c89768 1046s 1..17 1046s # Start of thread tests 1046s ok 1 /thread/mutex1 1046s ok 2 /thread/mutex2 1046s ok 3 /thread/mutex3 1046s ok 4 /thread/mutex4 1047s # Executing: glib/mutex.test 1051s ok 5 /thread/mutex5 1051s # slow test /thread/mutex5 executed in 5.34 secs 1051s # Start of mutex tests 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1051s ok 6 /thread/mutex/errno 1051s # Start of perf tests 1051s # max perf: 1.000000 mips 1051s ok 7 /thread/mutex/perf/uncontended 1051s # Start of contended tests 1051s # max perf: inf mips 1051s ok 8 /thread/mutex/perf/contended/1 1051s # max perf: inf mips 1051s ok 9 /thread/mutex/perf/contended/2 1051s ok - glib/mutex.test 1051s # max perf: inf mips 1051s ok 10 /thread/mutex/perf/contended/3 1051s # max perf: 5.000000 mips 1051s ok 11 /thread/mutex/perf/contended/4 1051s # max perf: 1.500000 mips 1051s ok 12 /thread/mutex/perf/contended/5 1051s # max perf: 3.500000 mips 1051s ok 13 /thread/mutex/perf/contended/6 1051s # max perf: 2.666667 mips 1051s ok 14 /thread/mutex/perf/contended/7 1051s # max perf: 3.000000 mips 1051s ok 15 /thread/mutex/perf/contended/8 1051s # max perf: 2.500000 mips 1051s ok 16 /thread/mutex/perf/contended/9 1051s # max perf: 2.750000 mips 1051s ok 17 /thread/mutex/perf/contended/10 1051s # End of contended tests 1051s # End of perf tests 1051s # End of mutex tests 1051s # End of thread tests 1051s TAP version 14 1051s # random seed: R02S0371ee548178202578c91fb8cc0be10a 1051s 1..68 1051s # Start of GDateTime tests 1051s # Bug Reference: http://bugzilla.gnome.org/702674 1051s ok 1 /GDateTime/invalid 1051s ok 2 /GDateTime/add_days 1051s ok 3 /GDateTime/add_full 1051s ok 4 /GDateTime/add_hours 1051s ok 5 /GDateTime/add_minutes 1051s ok 6 /GDateTime/add_months 1051s ok 7 /GDateTime/add_seconds 1051s ok 8 /GDateTime/add_weeks 1051s ok 9 /GDateTime/add_years 1051s ok 10 /GDateTime/compare 1051s ok 11 /GDateTime/diff 1051s ok 12 /GDateTime/equal 1051s ok 13 /GDateTime/get_day_of_week 1051s ok 14 /GDateTime/get_day_of_month 1051s ok 15 /GDateTime/get_day_of_year 1051s ok 16 /GDateTime/get_hour 1051s ok 17 /GDateTime/get_microsecond 1051s ok 18 /GDateTime/get_minute 1051s ok 19 /GDateTime/get_month 1051s ok 20 /GDateTime/get_second 1051s ok 21 /GDateTime/get_utc_offset 1051s ok 22 /GDateTime/get_year 1051s ok 23 /GDateTime/hash 1051s ok 24 /GDateTime/new_from_unix 1051s ok 25 /GDateTime/new_from_unix_utc 1051s ok 26 /GDateTime/new_from_timeval 1051s ok 27 /GDateTime/new_from_timeval_utc 1051s ok 28 /GDateTime/new_from_iso8601 1051s ok 29 /GDateTime/new_full 1051s ok 30 /GDateTime/now 1051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1051s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1051s # %a -> expected: Sat 1051s # %a -> actual: Sat 1051s # %A -> expected: Saturday 1051s # %A -> actual: Saturday 1051s # %b -> expected: Oct 1051s # %b -> actual: Oct 1051s # %B -> expected: October 1051s # %B -> actual: October 1051s # %d -> expected: 24 1051s # %d -> actual: 24 1051s # %d -> expected: 01 1051s # %d -> actual: 01 1051s # %e -> expected: 24 1051s # %e -> actual: 24 1051s # %e -> expected:  1 1051s # %e -> actual:  1 1051s # %f -> expected: 001000 1051s # %f -> actual: 001000 1051s # %h -> expected: Oct 1051s # %h -> actual: Oct 1051s # %H -> expected: 00 1051s # %H -> actual: 00 1051s # %H -> expected: 15 1051s # %H -> actual: 15 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %I -> expected: 03 1051s # %I -> actual: 03 1051s # %j -> expected: 297 1051s # %j -> actual: 297 1051s # %k -> expected:  0 1051s # %k -> actual:  0 1051s # %k -> expected: 13 1051s # %k -> actual: 13 1051s # %l -> expected: 12 1051s # %l -> actual: 12 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %l -> expected:  1 1051s # %l -> actual:  1 1051s # %l -> expected: 10 1051s # %l -> actual: 10 1051s # %m -> expected: 10 1051s # %m -> actual: 10 1051s # %M -> expected: 00 1051s # %M -> actual: 00 1051s # %p -> expected: AM 1051s # %p -> actual: AM 1051s # %p -> expected: PM 1051s # %p -> actual: PM 1051s # %P -> expected: am 1051s # %P -> actual: am 1051s # %P -> expected: pm 1051s # %P -> actual: pm 1051s # %r -> expected: 12:00:00 AM 1051s # %r -> actual: 12:00:00 AM 1051s # %r -> expected: 01:13:13 PM 1051s # %r -> actual: 01:13:13 PM 1051s # %R -> expected: 00:00 1051s # %R -> actual: 00:00 1051s # %R -> expected: 13:13 1051s # %R -> actual: 13:13 1051s # %S -> expected: 00 1051s # %S -> actual: 00 1051s # %t -> expected: 1051s # %t -> actual: 1051s # %u -> expected: 6 1051s # %u -> actual: 6 1051s # %x -> expected: 10/24/09 1051s # %x -> actual: 10/24/09 1051s # %X -> expected: 00:00:00 1051s # %X -> actual: 00:00:00 1051s # %X -> expected: 13:14:15 1051s # %X -> actual: 13:14:15 1051s # %y -> expected: 09 1051s # %y -> actual: 09 1051s # %Y -> expected: 2009 1051s # %Y -> actual: 2009 1051s # %% -> expected: % 1051s # %% -> actual: % 1051s # % -> expected: 1051s # % -> actual: 1051s # %9 -> expected: (null) 1051s # %9 -> actual: (null) 1051s # %Z -> expected: UTC 1051s # %Z -> actual: UTC 1051s # %#Z %Z -> expected: utc UTC 1051s # %#Z %Z -> actual: utc UTC 1051s ok 32 /GDateTime/printf 1051s # %a -> expected: ÅÚ 1051s # %a -> actual: ÅÚ 1051s # %A -> expected: ÅÚÍËÆü 1051s # %A -> actual: ÅÚÍËÆü 1051s # %b -> expected: 10·î 1051s # %b -> actual: 10·î 1051s # %B -> expected: 10·î 1051s # %B -> actual: 10·î 1051s # %c -> expected: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1051s # %c -> actual: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1051s # %C -> expected: 20 1051s # %C -> actual: 20 1051s # %d -> expected: 24 1051s # %d -> actual: 24 1051s # %d -> expected: 01 1051s # %d -> actual: 01 1051s # %e -> expected: 24 1051s # %e -> actual: 24 1051s # %h -> expected: 10·î 1051s # %h -> actual: 10·î 1051s # %H -> expected: 00 1051s # %H -> actual: 00 1051s # %H -> expected: 15 1051s # %H -> actual: 15 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %I -> expected: 03 1051s # %I -> actual: 03 1051s # %j -> expected: 297 1051s # %j -> actual: 297 1051s # %k -> expected: ?0 1051s # %k -> actual: ?0 1051s # %k -> expected: 13 1051s # %k -> actual: 13 1051s # %l -> expected: 12 1051s # %l -> actual: 12 1051s # %I -> expected: 12 1051s # %I -> actual: 12 1051s # %l -> expected: ?1 1051s # %l -> actual: ?1 1051s # %l -> expected: 10 1051s # %l -> actual: 10 1051s # %m -> expected: 10 1051s # %m -> actual: 10 1051s # %M -> expected: 00 1051s # %M -> actual: 00 1051s # %p -> expected: ¸áÁ° 1051s # %p -> actual: ¸áÁ° 1051s # %p -> expected: ¸á¸å 1051s # %p -> actual: ¸á¸å 1051s # %P -> expected: ¸áÁ° 1051s # %P -> actual: ¸áÁ° 1051s # %P -> expected: ¸á¸å 1051s # %P -> actual: ¸á¸å 1051s # %r -> expected: ¸áÁ°12»þ00ʬ00Éà 1051s # %r -> actual: ¸áÁ°12»þ00ʬ00Éà 1051s # %r -> expected: ¸á¸å01»þ13ʬ13Éà 1051s # %r -> actual: ¸á¸å01»þ13ʬ13Éà 1051s # %R -> expected: 00:00 1051s # %R -> actual: 00:00 1051s # %R -> expected: 13:13 1051s # %R -> actual: 13:13 1051s # %S -> expected: 00 1051s # %S -> actual: 00 1051s # %t -> expected: 1051s # %t -> actual: 1051s # %u -> expected: 6 1051s # %u -> actual: 6 1051s # %x -> expected: 2009ǯ10·î24Æü 1051s # %x -> actual: 2009ǯ10·î24Æü 1051s # %X -> expected: 00»þ00ʬ00Éà 1051s # %X -> actual: 00»þ00ʬ00Éà 1051s # %X -> expected: 13»þ14ʬ15Éà 1051s # %X -> actual: 13»þ14ʬ15Éà 1051s # %y -> expected: 09 1051s # %y -> actual: 09 1051s # %Y -> expected: 2009 1051s # %Y -> actual: 2009 1051s # %% -> expected: % 1051s # %% -> actual: % 1051s # % -> expected: 1051s # % -> actual: 1051s # %9 -> expected: (null) 1051s # %9 -> actual: (null) 1051s # %Ec -> expected: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1051s # %Ec -> actual: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1051s # %EC -> expected: Ê¿À® 1051s # %EC -> actual: Ê¿À® 1051s # %Ex -> expected: Ê¿À®21ǯ10·î24Æü 1051s # %Ex -> actual: Ê¿À®21ǯ10·î24Æü 1051s # %EX -> expected: 00»þ00ʬ00Éà 1051s # %EX -> actual: 00»þ00ʬ00Éà 1051s # %Ey -> expected: 21 1051s # %Ey -> actual: 21 1051s # %EY -> expected: Ê¿À®21ǯ 1051s # %EY -> actual: Ê¿À®21ǯ 1051s ok 33 /GDateTime/non_utf8_printf 1051s # ???? -> expected: ???? 1051s # ???? -> actual: ???? 1051s # %H?%M -> expected: 23?15 1051s # %H?%M -> actual: 23?15 1051s # %H?%M -> expected: 23?15 1051s # %H?%M -> actual: 23?15 1051s ok 34 /GDateTime/format_unrepresentable 1051s ok 35 /GDateTime/format_iso8601 1051s # Running test: glib/gdatetime.test 1052s ok 36 /GDateTime/strftime 1052s # %d -> expected: 01 1052s # %d -> actual: 01 1052s # %_d -> expected: 1 1052s # %_d -> actual: 1 1052s # %-d -> expected: 1 1052s # %-d -> actual: 1 1052s # %0d -> expected: 01 1052s # %0d -> actual: 01 1052s # %d -> expected: 21 1052s # %d -> actual: 21 1052s # %_d -> expected: 21 1052s # %_d -> actual: 21 1052s # %-d -> expected: 21 1052s # %-d -> actual: 21 1052s # %0d -> expected: 21 1052s # %0d -> actual: 21 1052s # %e -> expected:  1 1052s # %e -> actual:  1 1052s # %_e -> expected: 1 1052s # %_e -> actual: 1 1052s # %-e -> expected: 1 1052s # %-e -> actual: 1 1052s # %0e -> expected: 01 1052s # %0e -> actual: 01 1052s # %e -> expected: 21 1052s # %e -> actual: 21 1052s # %_e -> expected: 21 1052s # %_e -> actual: 21 1052s # %-e -> expected: 21 1052s # %-e -> actual: 21 1052s # %0e -> expected: 21 1052s # %0e -> actual: 21 1052s # %a -> expected: Thu 1052s # %a -> actual: Thu 1052s # %^a -> expected: THU 1052s # %^a -> actual: THU 1052s # %#a -> expected: THU 1052s # %#a -> actual: THU 1052s # %A -> expected: Thursday 1052s # %A -> actual: Thursday 1052s # %^A -> expected: THURSDAY 1052s # %^A -> actual: THURSDAY 1052s # %#A -> expected: THURSDAY 1052s # %#A -> actual: THURSDAY 1052s # %b -> expected: Jan 1052s # %b -> actual: Jan 1052s # %^b -> expected: JAN 1052s # %^b -> actual: JAN 1052s # %#b -> expected: JAN 1052s # %#b -> actual: JAN 1052s # %B -> expected: January 1052s # %B -> actual: January 1052s # %^B -> expected: JANUARY 1052s # %^B -> actual: JANUARY 1052s # %#B -> expected: JANUARY 1052s # %#B -> actual: JANUARY 1052s # %h -> expected: Jan 1052s # %h -> actual: Jan 1052s # %^h -> expected: JAN 1052s # %^h -> actual: JAN 1052s # %#h -> expected: JAN 1052s # %#h -> actual: JAN 1052s # %Z -> expected: UTC 1052s # %Z -> actual: UTC 1052s # %^Z -> expected: UTC 1052s # %^Z -> actual: UTC 1052s # %#Z -> expected: utc 1052s # %#Z -> actual: utc 1052s # %H -> expected: 01 1052s # %H -> actual: 01 1052s # %_H -> expected: 1 1052s # %_H -> actual: 1 1052s # %-H -> expected: 1 1052s # %-H -> actual: 1 1052s # %0H -> expected: 01 1052s # %0H -> actual: 01 1052s # %H -> expected: 21 1052s # %H -> actual: 21 1052s # %_H -> expected: 21 1052s # %_H -> actual: 21 1052s # %-H -> expected: 21 1052s # %-H -> actual: 21 1052s # %0H -> expected: 21 1052s # %0H -> actual: 21 1052s # %I -> expected: 01 1052s # %I -> actual: 01 1052s # %_I -> expected: 1 1052s # %_I -> actual: 1 1052s # %-I -> expected: 1 1052s # %-I -> actual: 1 1052s # %0I -> expected: 01 1052s # %0I -> actual: 01 1052s # %I -> expected: 11 1052s # %I -> actual: 11 1052s # %_I -> expected: 11 1052s # %_I -> actual: 11 1052s # %-I -> expected: 11 1052s # %-I -> actual: 11 1052s # %0I -> expected: 11 1052s # %0I -> actual: 11 1052s # %k -> expected:  1 1052s # %k -> actual:  1 1052s # %_k -> expected: 1 1052s # %_k -> actual: 1 1052s # %-k -> expected: 1 1052s # %-k -> actual: 1 1052s # %0k -> expected: 01 1052s # %0k -> actual: 01 1052s # %l -> expected:  1 1052s # %l -> actual:  1 1052s # %_l -> expected: 1 1052s # %_l -> actual: 1 1052s # %-l -> expected: 1 1052s # %-l -> actual: 1 1052s # %0l -> expected: 01 1052s # %0l -> actual: 01 1052s # %l -> expected: 11 1052s # %l -> actual: 11 1052s # %_l -> expected: 11 1052s # %_l -> actual: 11 1052s # %-l -> expected: 11 1052s # %-l -> actual: 11 1052s # %0l -> expected: 11 1052s # %0l -> actual: 11 1052s # %p -> expected: AM 1052s # %p -> actual: AM 1052s # %^p -> expected: AM 1052s # %^p -> actual: AM 1052s # %#p -> expected: am 1052s # %#p -> actual: am 1052s # %P -> expected: am 1052s # %P -> actual: am 1052s # %^P -> expected: AM 1052s # %^P -> actual: AM 1052s # %#P -> expected: am 1052s # %#P -> actual: am 1052s # %OH -> expected: Û²Û³ 1052s # %OH -> actual: Û²Û³ 1052s # %OI -> expected: Û±Û± 1052s # %OI -> actual: Û±Û± 1052s # %OM -> expected: Û°Û° 1052s # %OM -> actual: Û°Û° 1052s # %Om -> expected: Û°Û· 1052s # %Om -> actual: Û°Û· 1052s # %0Om -> expected: Û°Û· 1052s # %0Om -> actual: Û°Û· 1052s # %-Om -> expected: Û· 1052s # %-Om -> actual: Û· 1052s # %_Om -> expected: Û· 1052s # %_Om -> actual: Û· 1052s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1052s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1052s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1052s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1052s # %C -> expected: 20 1052s # %C -> actual: 20 1052s # %EC -> expected: 20 1052s # %EC -> actual: 20 1052s # %x -> expected: 02/01/09 1052s # %x -> actual: 02/01/09 1052s # %Ex -> expected: 02/01/09 1052s # %Ex -> actual: 02/01/09 1052s # %X -> expected: 01:02:03 1052s # %X -> actual: 01:02:03 1052s # %EX -> expected: 01:02:03 1052s # %EX -> actual: 01:02:03 1052s # %y -> expected: 09 1052s # %y -> actual: 09 1052s # %Ey -> expected: 09 1052s # %Ey -> actual: 09 1052s # %Y -> expected: 2009 1052s # %Y -> actual: 2009 1052s # %EY -> expected: 2009 1052s # %EY -> actual: 2009 1052s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1052s # Bug Reference: http://bugzilla.gnome.org/749206 1052s # %B -> expected: January 1052s # %B -> actual: January 1052s # %OB -> expected: February 1052s # %OB -> actual: February 1052s # %b -> expected: Mar 1052s # %b -> actual: Mar 1052s # %Ob -> expected: Apr 1052s # %Ob -> actual: Apr 1052s # %h -> expected: May 1052s # %h -> actual: May 1052s # %Oh -> expected: Jun 1052s # %Oh -> actual: Jun 1052s # %B -> expected: Juli 1052s # %B -> actual: Juli 1052s # %OB -> expected: August 1052s # %OB -> actual: August 1052s # %b -> expected: Sep 1052s # %b -> actual: Sep 1052s # %Ob -> expected: Okt 1052s # %Ob -> actual: Okt 1052s # %h -> expected: Nov 1052s # %h -> actual: Nov 1052s # %Oh -> expected: Dez 1052s # %Oh -> actual: Dez 1052s # %B -> expected: enero 1052s # %B -> actual: enero 1052s # %OB -> expected: febrero 1052s # %OB -> actual: febrero 1052s # %b -> expected: mar 1052s # %b -> actual: mar 1052s # %Ob -> expected: abr 1052s # %Ob -> actual: abr 1052s # %h -> expected: may 1052s # %h -> actual: may 1052s # %Oh -> expected: jun 1052s # %Oh -> actual: jun 1052s # %B -> expected: juillet 1052s # %B -> actual: juillet 1052s # %OB -> expected: août 1052s # %OB -> actual: août 1052s # %b -> expected: sept. 1052s # %b -> actual: sept. 1052s # %Ob -> expected: oct. 1052s # %Ob -> actual: oct. 1052s # %h -> expected: nov. 1052s # %h -> actual: nov. 1052s # %Oh -> expected: déc. 1052s # %Oh -> actual: déc. 1052s # %B -> expected: ΙανουαÏίου 1052s # %B -> actual: ΙανουαÏίου 1052s # %B -> expected: ΦεβÏουαÏίου 1052s # %B -> actual: ΦεβÏουαÏίου 1052s # %B -> expected: ΜαÏτίου 1052s # %B -> actual: ΜαÏτίου 1052s # %OB -> expected: ΑπÏίλιος 1052s # %OB -> actual: ΑπÏίλιος 1052s # %OB -> expected: Μάιος 1052s # %OB -> actual: Μάιος 1052s # %OB -> expected: ΙοÏνιος 1052s # %OB -> actual: ΙοÏνιος 1052s # %b -> expected: Ιουλ 1052s # %b -> actual: Ιουλ 1052s # %Ob -> expected: ΑÏγ 1052s # %Ob -> actual: ΑÏγ 1052s # %B -> expected: svibnja 1052s # %B -> actual: svibnja 1052s # %B -> expected: lipnja 1052s # %B -> actual: lipnja 1052s # %B -> expected: srpnja 1052s # %B -> actual: srpnja 1052s # %OB -> expected: Kolovoz 1052s # %OB -> actual: kolovoz 1052s # %OB -> expected: Rujan 1052s # %OB -> actual: rujan 1052s # %OB -> expected: Listopad 1052s # %OB -> actual: listopad 1052s # %b -> expected: Stu 1052s # %b -> actual: stu 1052s # %Ob -> expected: Pro 1052s # %Ob -> actual: pro 1052s # %B -> expected: sausio 1052s # %B -> actual: sausio 1052s # %B -> expected: vasario 1052s # %B -> actual: vasario 1052s # %B -> expected: kovo 1052s # %B -> actual: kovo 1052s # %OB -> expected: balandis 1052s # %OB -> actual: balandis 1052s # %OB -> expected: gegužė 1052s # %OB -> actual: gegužė 1052s # %OB -> expected: birželis 1052s # %OB -> actual: birželis 1052s # %b -> expected: liep. 1052s # %b -> actual: liep. 1052s # %Ob -> expected: rugp. 1052s # %Ob -> actual: rugp. 1052s # %B -> expected: maja 1052s # %B -> actual: maja 1052s # %B -> expected: czerwca 1052s # %B -> actual: czerwca 1052s # %B -> expected: lipca 1052s # %B -> actual: lipca 1052s # %OB -> expected: sierpieÅ„ 1052s # %OB -> actual: sierpieÅ„ 1052s # %OB -> expected: wrzesieÅ„ 1052s # %OB -> actual: wrzesieÅ„ 1052s # %OB -> expected: październik 1052s # %OB -> actual: październik 1052s # %b -> expected: lis 1052s # %b -> actual: lis 1052s # %Ob -> expected: gru 1052s # %Ob -> actual: gru 1052s # %B -> expected: ÑÐ½Ð²Ð°Ñ€Ñ 1052s # %B -> actual: ÑÐ½Ð²Ð°Ñ€Ñ 1052s # %B -> expected: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1052s # %B -> actual: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1052s # %B -> expected: марта 1052s # %B -> actual: марта 1052s # %OB -> expected: Ðпрель 1052s # %OB -> actual: Ðпрель 1052s # %OB -> expected: Май 1052s # %OB -> actual: Май 1052s # %OB -> expected: Июнь 1052s # %OB -> actual: Июнь 1052s # %b -> expected: июл 1052s # %b -> actual: июл 1052s # %Ob -> expected: авг 1052s # %Ob -> actual: авг 1052s # %b -> expected: Ð¼Ð°Ñ 1052s # %b -> actual: Ð¼Ð°Ñ 1052s # %Ob -> expected: май 1052s # %Ob -> actual: май 1052s ok 38 /GDateTime/month_names 1052s ok 39 /GDateTime/to_local 1052s ok 40 /GDateTime/to_unix 1052s ok 41 /GDateTime/to_timeval 1052s ok 42 /GDateTime/to_utc 1052s ok 43 /GDateTime/now_utc 1052s ok 44 /GDateTime/dst 1052s # Bug Reference: http://bugzilla.gnome.org/642935 1052s ok 45 /GDateTime/test_z 1052s # Executing: glib/gdatetime.test 1053s ok 46 /GDateTime/test-all-dates 1053s # slow test /GDateTime/test-all-dates executed in 1.38 secs 1053s ok 47 /GDateTime/unix_usec 1053s # Start of new_from_unix tests 1053s # Bug Reference: http://bugzilla.gnome.org/782089 1053s ok 48 /GDateTime/new_from_unix/overflow 1053s # End of new_from_unix tests 1053s # Start of new_from_timeval tests 1053s # Bug Reference: http://bugzilla.gnome.org/782089 1053s # Maximum supported GTimeVal.tv_sec = 253402300799 1053s ok 49 /GDateTime/new_from_timeval/overflow 1053s # End of new_from_timeval tests 1053s # Start of new_from_iso8601 tests 1053s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1053s # Vector 0: 1990-11-01T10:21:17Z 1053s # Vector 1: 19901101T102117Z 1053s # Vector 2: 1970-01-01T00:00:17.12Z 1053s # Vector 3: 1970-01-01T00:00:17.1234Z 1053s # Vector 4: 1970-01-01T00:00:17.123456Z 1053s # Vector 5: 1980-02-22T12:36:00+02:00 1053s # Vector 6: 1990-12-31T15:59:60-08:00 1053s # Vector 7: 1053s # Vector 8: x 1053s # Vector 9: 123x 1053s # Vector 10: 2001-10+x 1053s # Vector 11: 1980-02-22T 1053s # Vector 12: 2001-10-08Tx 1053s # Vector 13: 2001-10-08T10:11x 1053s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1053s # Vector 15: 1980-02-22T10:36:00Zulu 1053s # Vector 16: 2T0+819855292164632335 1053s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1053s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1053s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1053s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1053s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1053s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1053s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1053s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1053s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1053s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1053s # Vector 27: 20180803T140805.446178377+0100 1053s # Vector 28: 21474836480803T140805.446178377+0100 1053s # Vector 29: 20181303T140805.446178377+0100 1053s # Vector 30: 20180003T140805.446178377+0100 1053s # Vector 31: 20180800T140805.446178377+0100 1053s # Vector 32: 20180832T140805.446178377+0100 1053s # Vector 33: 20180803T240805.446178377+0100 1053s # Vector 34: 20180803T146005.446178377+0100 1053s # Vector 35: 20180803T140863.446178377+0100 1053s # Vector 36: 20180803T140805.446178377+10000 1053s # Vector 37: -0005-01-01T00:00:00Z 1053s # Vector 38: 2018-08-06 1053s # Vector 39: 20180803T140805,446178377+0100 1053s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1053s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1053s # Vector 42: 1990-11-01T10:21:17 1053s # Vector 43: 1719W462 407777-07 1053s # Vector 44: 4011090 260528Z 1053s # Vector 45: 0000W011 228214-22 1053s ok 50 /GDateTime/new_from_iso8601/2 1053s # End of new_from_iso8601 tests 1053s # Start of format_mixed tests 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1053s # %b -> expected: mar 1053s # %b -> actual: Mar 1053s # %B -> expected: march 1053s # %B -> actual: March 1053s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1053s # %b -> expected: mar 1053s # %b -> actual: Mar 1053s # %B -> expected: march 1053s # %B -> actual: March 1053s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1053s # %b -> expected: Mär 1053s # %b -> actual: Mär 1053s # %B -> expected: März 1053s # %B -> actual: März 1053s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1053s # %b -> expected: Mär 1053s # %b -> actual: Mär 1053s # %B -> expected: März 1053s # %B -> actual: März 1053s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1053s # End of format_mixed tests 1053s # Start of strftime tests 1053s # %r -> expected: (null) 1053s # %r -> actual: (null) 1053s ok 55 /GDateTime/strftime/error_handling 1053s # End of strftime tests 1053s # Start of eras tests 1053s # %Ec -> expected: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1053s # %Ec -> actual: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1053s # %EC -> expected: 令和 1053s # %EC -> actual: 令和 1053s # %Ex -> expected: 令和05å¹´06月01æ—¥ 1053s # %Ex -> actual: 令和05å¹´06月01æ—¥ 1053s # %EX -> expected: 00時00分00ç§’ 1053s # %EX -> actual: 00時00分00ç§’ 1053s # %Ey -> expected: 05 1053s # %Ey -> actual: 05 1053s # %EY -> expected: 令和05å¹´ 1053s # %EY -> actual: 令和05å¹´ 1053s # %Ec -> expected: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1053s # %Ec -> actual: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1053s # %EC -> expected: å¹³æˆ 1053s # %EC -> actual: å¹³æˆ 1053s # %Ex -> expected: å¹³æˆ31å¹´04月30æ—¥ 1053s # %Ex -> actual: å¹³æˆ31å¹´04月30æ—¥ 1053s # %EX -> expected: 00時00分00ç§’ 1053s # %EX -> actual: 00時00分00ç§’ 1053s # %Ey -> expected: 31 1053s # %Ey -> actual: 31 1053s # %EY -> expected: å¹³æˆ31å¹´ 1053s # %EY -> actual: å¹³æˆ31å¹´ 1053s # %Ec -> expected: 昭和元年12月25æ—¥ 00時00分00ç§’ 1053s # %Ec -> actual: 昭和元年12月25æ—¥ 00時00分00ç§’ 1053s # %EC -> expected: 昭和 1053s # %EC -> actual: 昭和 1053s # %Ex -> expected: 昭和元年12月25æ—¥ 1053s # %Ex -> actual: 昭和元年12月25æ—¥ 1053s # %EX -> expected: 00時00分00ç§’ 1053s # %EX -> actual: 00時00分00ç§’ 1053s # %Ey -> expected: 01 1053s # %Ey -> actual: 01 1053s # %EY -> expected: 昭和元年 1053s # %EY -> actual: 昭和元年 1053s ok 56 /GDateTime/eras/japan 1053s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1053s # Vector 0: 1053s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1053s # 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å¹´ 1053s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Eyå¹´ 1053s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Eyå¹´ 1053s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 8: + 1053s # Vector 9: +: 1053s # Vector 10: +:: 1053s # Vector 11: +:200 1053s # Vector 12: +:2nonsense 1053s # Vector 13: +:2nonsense: 1053s # Vector 14: +:2: 1053s # Vector 15: +:2:: 1053s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 18: +:2:2020:+*:令和:%EC%Eyå¹´ 1053s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Eyå¹´ 1053s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 22: +:2:2020/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Eyå¹´ 1053s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Eyå¹´ 1053s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Eyå¹´ 1053s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Eyå¹´ 1053s # Vector 28: +:2:2020/01/01 1053s # Vector 29: +:2:2020/01/01: 1053s # Vector 30: +:2:2020/01/01:: 1053s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Eyå¹´ 1053s # Vector 32: +:2:2020/01/01:+* 1053s # Vector 33: +:2:2020/01/01:+*: 1053s # Vector 34: +:2:2020/01/01:+*:: 1053s # Vector 35: +:2:2020/01/01:+*:令和 1053s # Vector 36: +:2:2020/01/01:+*:令和: 1053s # Vector 37: +:2:2020/01/01:+*:令和:; 1053s ok 58 /GDateTime/eras/parsing 1053s # End of eras tests 1053s # End of GDateTime tests 1053s # Start of GTimeZone tests 1053s ok 59 /GTimeZone/find-interval 1053s ok 60 /GTimeZone/adjust-time 1053s ok 61 /GTimeZone/no-header 1053s ok 62 /GTimeZone/no-header-identifier 1053s ok 63 /GTimeZone/posix-parse 1053s # Bug Reference: http://bugzilla.gnome.org/697715 1053s ok 64 /GTimeZone/floating-point 1053s # System time zone identifier: Etc/UTC 1053s ok 65 /GTimeZone/identifier 1053s # Vector 0: -158400 1053s # Vector 1: -10000 1053s # Vector 2: -3600 1053s # Vector 3: -61 1053s # Vector 4: -60 1053s # Vector 5: -59 1053s # Vector 6: 0 1053s # Vector 7: 59 1053s # Vector 8: 60 1053s # Vector 9: 61 1053s # Vector 10: 3600 1053s # Vector 11: 10000 1053s # Vector 12: 158400 1053s ok 66 /GTimeZone/new-offset 1053s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1053s ok 67 /GTimeZone/parse-rfc8536 1053s # /GTimeZone/caching summary: GTimeZone instances are cached 1053s ok 68 /GTimeZone/caching 1053s # End of GTimeZone tests 1053s TAP version 14 1053s # random seed: R02S1350f9656da8d2b429726d60ce3ffb9f 1053s 1..4 1053s # Start of C tests 1053s ok 1 /C/standard-89 1053s # End of C tests 1053s # Start of alignof tests 1053s ok 2 /alignof/fallback 1053s # End of alignof tests 1053s # Start of assert tests 1053s ok 3 /assert/static 1053s # End of assert tests 1053s # Start of struct tests 1053s ok 4 /struct/sizeof_member 1053s # End of struct tests 1053s TAP version 14 1053s ok - glib/gdatetime.test 1053s # Running test: glib/macros-c-89.test 1053s ok - glib/macros-c-89.test 1053s # Running test: glib/dump.test 1053s ok - glib/dump.test 1053s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1053s # random seed: R02Sc78acadbd5d319a98ecec60f220a6ab6 1053s 1..4 1053s # Start of dump tests 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/system-config1:/tmp/test_dump_9HNR52/dump/empty-file/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/system-data1:/tmp/test_dump_9HNR52/dump/empty-file/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_9HNR52/dump/empty-file/.dirs/runtime 1053s ok 1 /dump/empty-file 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_9HNR52/dump/missing-get-type/.dirs/runtime 1053s Invalid GType function: 'does_not_exist_get_type' 1053s ok 2 /dump/missing-get-type 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_9HNR52/dump/missing-quark/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_9HNR52/dump/missing-quark/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_9HNR52/dump/missing-quark/.dirs/runtime 1053s Invalid error quark function: 'does_not_exist_error' 1053s ok 3 /dump/missing-quark 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_9HNR52/dump/basic/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_9HNR52/dump/basic/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_9HNR52/dump/basic/.dirs/system-config1:/tmp/test_dump_9HNR52/dump/basic/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_9HNR52/dump/basic/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_9HNR52/dump/basic/.dirs/system-data1:/tmp/test_dump_9HNR52/dump/basic/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_9HNR52/dump/basic/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_9HNR52/dump/basic/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_9HNR52/dump/basic/.dirs/runtime 1053s ok 4 /dump/basic 1053s # End of dump tests 1053s TAP version 14 1053s # random seed: R02S9632697fde1039350b17e4495316d34b 1053s 1..8 1053s # Start of gdbus tests 1053s # Start of codegen tests 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/annotations/.dirs/runtime 1053s ok 1 /gdbus/codegen/annotations 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/interface_stability/.dirs/runtime 1053s ok 2 /gdbus/codegen/interface_stability 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/object-manager/.dirs/runtime 1053s ok - glib/gdbus-test-codegen-min-required-2-64.test 1053s # Running test: glib/qdata.test 1053s ok 3 /gdbus/codegen/object-manager 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/property-naming/.dirs/runtime 1053s ok 4 /gdbus/codegen/property-naming 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/autocleanups/.dirs/runtime 1053s ok 5 /gdbus/codegen/autocleanups 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/deprecations/.dirs/runtime 1053s ok 6 /gdbus/codegen/deprecations 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/standalone-interface-info/.dirs/runtime 1053s ok 7 /gdbus/codegen/standalone-interface-info 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_VLSR52/gdbus/codegen/unix-fd-list/.dirs/runtime 1053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1053s ok 8 /gdbus/codegen/unix-fd-list 1053s # End of codegen tests 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: R02Sc175363f122d98a07b51991366c1c867 1053s 1..2 1053s # Start of qdata tests 1053s ok 1 /qdata/threaded 1053s ok 2 /qdata/dup 1053s # End of qdata tests 1053s ok - glib/qdata.test 1053s # Running test: glib/guuid.test 1053s TAP version 14 1053s # random seed: R02Sfea32d2d0c4a84c191fa6effd2271ad6 1053s 1..2 1053s # Start of uuid tests 1053s ok 1 /uuid/string 1053s ok 2 /uuid/random 1053s # End of uuid tests 1053s ok - glib/guuid.test 1053s # Running test: glib/properties-refcount3.test 1053s TAP version 14 1053s # random seed: R02Scc618c8e56a2ce7ae8e440268d420f2f 1053s 1..1 1053s # Start of gobject tests 1053s # Start of refcount tests 1057s # Executing: glib/properties-refcount3.test 1062s # Executing: glib/properties-refcount3.test 1067s # Executing: glib/properties-refcount3.test 1072s # Executing: glib/properties-refcount3.test 1077s # Executing: glib/properties-refcount3.test 1082s # Executing: glib/properties-refcount3.test 1083s ok - glib/properties-refcount3.test 1083s # 1083s # stopping 1083s # 1083s # stopped 1083s # 1083s # 11953592 1118039 1083s # 1083s ok 1 /gobject/refcount/properties-3 1083s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1083s # End of refcount tests 1083s # End of gobject tests 1083s # Running test: glib/gdbus-proxy.test 1083s TAP version 14 1083s # random seed: R02S173c1ce93b33bab74b994130d1b67ecf 1083s 1..5 1083s # Start of gdbus tests 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/.dirs/runtime 1085s ok 1 /gdbus/proxy 1085s # slow test /gdbus/proxy executed in 1.73 secs 1085s # Start of proxy tests 1085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/home 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/cache 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/system-config2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/config 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/system-data2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/data 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/state 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-properties/.dirs/runtime 1085s ok 2 /gdbus/proxy/no-properties 1085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/home 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/cache 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/config 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/data 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/state 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/wellknown-noauto/.dirs/runtime 1085s ok 3 /gdbus/proxy/wellknown-noauto 1085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/home 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/cache 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/system-config2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/config 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/system-data2 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/data 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/state 1085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/async/.dirs/runtime 1087s ok 4 /gdbus/proxy/async 1087s # slow test /gdbus/proxy/async executed in 1.74 secs 1087s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/home 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/cache 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/system-config2 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/config 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/system-data2 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/data 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/state 1087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_RRU752/gdbus/proxy/no-match-rule/.dirs/runtime 1087s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1087s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1087s # Executing: glib/gdbus-proxy.test 1089s ok 5 /gdbus/proxy/no-match-rule 1089s # slow test /gdbus/proxy/no-match-rule executed in 1.73 secs 1089s # End of proxy tests 1089s # End of gdbus tests 1089s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1089s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1089s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1089s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1089s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1089s ok - glib/gdbus-proxy.test 1089s # Running test: glib/overflow.test 1089s TAP version 14 1089s # random seed: R02S052afd413155539250121b5fc36fb4bb 1089s 1..6 1089s # Start of glib tests 1089s # Start of checked-math tests 1089s ok 1 /glib/checked-math/guint-add 1089s ok 2 /glib/checked-math/guint-mul 1089s ok 3 /glib/checked-math/guint64-add 1089s ok - glib/overflow.test 1089s # Running test: glib/pattern.test 1089s ok 4 /glib/checked-math/guint64-mul 1089s ok 5 /glib/checked-math/gsize-add 1089s ok 6 /glib/checked-math/gsize-mul 1089s # End of checked-math tests 1089s # End of glib tests 1089s TAP version 14 1089s # random seed: R02S229fb31be368cf1a70b21f16dbddd9e4 1089s 1..90 1089s # Start of pattern tests 1089s # Start of compile tests 1089s ok 1 /pattern/compile/0 1089s ok 2 /pattern/compile/1 1089s ok 3 /pattern/compile/2 1089s ok 4 /pattern/compile/3 1089s ok 5 /pattern/compile/4 1089s ok 6 /pattern/compile/5 1089s ok 7 /pattern/compile/6 1089s ok 8 /pattern/compile/7 1089s ok 9 /pattern/compile/8 1089s ok 10 /pattern/compile/9 1089s ok 11 /pattern/compile/10 1089s ok 12 /pattern/compile/11 1089s ok 13 /pattern/compile/12 1089s ok 14 /pattern/compile/13 1089s # End of compile tests 1089s # Start of copy tests 1089s ok 15 /pattern/copy/0 1089s ok 16 /pattern/copy/1 1089s ok 17 /pattern/copy/2 1089s ok 18 /pattern/copy/3 1089s ok 19 /pattern/copy/4 1089s ok 20 /pattern/copy/5 1089s ok 21 /pattern/copy/6 1089s ok 22 /pattern/copy/7 1089s ok 23 /pattern/copy/8 1089s ok 24 /pattern/copy/9 1089s ok 25 /pattern/copy/10 1089s ok 26 /pattern/copy/11 1089s ok 27 /pattern/copy/12 1089s ok 28 /pattern/copy/13 1089s # End of copy tests 1089s # Start of match tests 1089s ok 29 /pattern/match/0 1089s ok 30 /pattern/match/1 1089s ok 31 /pattern/match/2 1089s ok 32 /pattern/match/3 1089s ok 33 /pattern/match/4 1089s ok 34 /pattern/match/5 1089s ok 35 /pattern/match/6 1089s ok 36 /pattern/match/7 1089s ok 37 /pattern/match/8 1089s ok 38 /pattern/match/9 1089s ok 39 /pattern/match/10 1089s ok 40 /pattern/match/11 1089s ok 41 /pattern/match/12 1089s ok 42 /pattern/match/13 1089s ok 43 /pattern/match/14 1089s ok 44 /pattern/match/15 1089s ok 45 /pattern/match/16 1089s ok 46 /pattern/match/17 1089s ok 47 /pattern/match/18 1089s ok 48 /pattern/match/19 1089s ok 49 /pattern/match/20 1089s ok 50 /pattern/match/21 1089s ok 51 /pattern/match/22 1089s ok 52 /pattern/match/23 1089s ok 53 /pattern/match/24 1089s ok 54 /pattern/match/25 1089s ok 55 /pattern/match/26 1089s ok 56 /pattern/match/27 1089s ok 57 /pattern/match/28 1089s ok 58 /pattern/match/29 1089s ok 59 /pattern/match/30 1089s ok 60 /pattern/match/31 1089s ok 61 /pattern/match/32 1089s ok 62 /pattern/match/33 1089s ok 63 /pattern/match/34 1089s ok 64 /pattern/match/35 1089s ok 65 /pattern/match/36 1089s ok 66 /pattern/match/37 1089s ok 67 /pattern/match/38 1089s ok 68 /pattern/match/39 1089s ok 69 /pattern/match/40 1089s ok 70 /pattern/match/41 1089s ok 71 /pattern/match/42 1089s ok 72 /pattern/match/43 1089s ok 73 /pattern/match/44 1089s ok 74 /pattern/match/45 1089s ok 75 /pattern/match/46 1089s ok 76 /pattern/match/47 1089s ok 77 /pattern/match/48 1089s ok 78 /pattern/match/49 1089s ok 79 /pattern/match/50 1089s # End of match tests 1089s # Start of equal tests 1089s ok 80 /pattern/equal/0 1089s ok 81 /pattern/equal/1 1089s ok 82 /pattern/equal/2 1089s ok 83 /pattern/equal/3 1089s ok 84 /pattern/equal/4 1089s ok 85 /pattern/equal/5 1089s ok 86 /pattern/equal/6 1089s ok 87 /pattern/equal/7 1089s ok 88 /pattern/equal/8 1089s ok 89 /pattern/equal/9 1089s ok 90 /pattern/equal/10 1089s # End of equal tests 1089s # End of pattern tests 1089s TAP version 14 1089s # random seed: R02Sc046eeb5b572cb3809f5acbc95ed66d7 1089s 1..4 1089s # Start of thread tests 1089s ok 1 /thread/cond1 1089s ok 2 /thread/cond2 1089s # Start of cond tests 1089s ok - glib/pattern.test 1089s # Running test: glib/cond.test 1090s ok 3 /thread/cond/wait-until 1090s # slow test /thread/cond/wait-until executed in 1.02 secs 1090s # Start of wait-until tests 1090s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1090s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1091s ok 4 /thread/cond/wait-until/contended-and-interrupted 1091s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1091s # End of wait-until tests 1091s # End of cond tests 1091s # End of thread tests 1091s ok - glib/cond.test 1091s # Running test: glib/messages-low-memory.py.test 1091s TAP version 13 1091s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1091s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1091s # tmpdir: /tmp/tmp8muar856 1091s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1091s # Return code: -6 1091s # Output: 1091s # 1091s # Error: 1091s # GLib-Message: 10:49:22.170: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1091s # GLib-Message: 10:49:22.170: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1091s # ../../../glib/gprintf.c:350: failed to allocate memory 1091s 1..1 1091s ok - glib/messages-low-memory.py.test 1091s # Running test: glib/fdo-notification-backend.test 1091s TAP version 14 1091s # random seed: R02Sbcf032f33c88c1ce43f4e5f57c3b74bd 1091s 1..2 1091s # Start of fdo-notification-backend tests 1091s # Test constructing a GFdoNotificationBackend 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s ok 1 /fdo-notification-backend/construction 1091s # Start of dbus tests 1091s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s ok - glib/fdo-notification-backend.test 1091s # Running test: glib/slist.test 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1091s ok 2 /fdo-notification-backend/dbus/activate-action 1091s # End of dbus tests 1091s # End of fdo-notification-backend tests 1091s TAP version 14 1091s # random seed: R02S27a9d2fea5e45453c57f8390fd1b14da 1091s 1..14 1091s # Start of slist tests 1091s ok 1 /slist/sort 1091s ok 2 /slist/sort-with-data 1091s ok 3 /slist/insert-sorted 1091s ok 4 /slist/insert-sorted-with-data 1091s ok 5 /slist/reverse 1091s ok 6 /slist/nth 1091s ok 7 /slist/remove 1091s ok 8 /slist/remove-all 1091s ok 9 /slist/insert 1091s ok 10 /slist/position 1091s ok 11 /slist/concat 1091s ok 12 /slist/copy 1091s # Start of sort tests 1091s ok - glib/slist.test 1091s # Running test: glib/buffered-input-stream.test 1091s ok - glib/buffered-input-stream.test 1091s # Running test: glib/strvbuilder.test 1091s ok - glib/strvbuilder.test 1091s # Running test: glib/cxx-2b.test 1091s ok 13 /slist/sort/stable 1091s # End of sort tests 1091s # Start of copy tests 1091s ok 14 /slist/copy/deep 1091s # End of copy tests 1091s # End of slist tests 1091s TAP version 14 1091s # random seed: R02S4c100dabe035febadf592b2f5793d8dd 1091s 1..10 1091s # Start of buffered-input-stream tests 1091s ok 1 /buffered-input-stream/peek 1091s ok 2 /buffered-input-stream/peek-buffer 1091s ok 3 /buffered-input-stream/set-buffer-size 1091s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1091s ok 4 /buffered-input-stream/read-byte 1091s ok 5 /buffered-input-stream/read 1091s ok 6 /buffered-input-stream/read-async 1091s ok 7 /buffered-input-stream/skip 1091s ok 8 /buffered-input-stream/skip-async 1091s ok 9 /buffered-input-stream/seek 1091s # End of buffered-input-stream tests 1091s # Start of filter-input-stream tests 1091s ok 10 /filter-input-stream/close 1091s # End of filter-input-stream tests 1091s TAP version 14 1091s # random seed: R02Sfc55228fa44249fc6d4656c7fb88072d 1091s 1..7 1091s # Start of strvbuilder tests 1091s ok 1 /strvbuilder/empty 1091s ok 2 /strvbuilder/add 1091s ok 3 /strvbuilder/addv 1091s ok 4 /strvbuilder/add_many 1091s ok 5 /strvbuilder/take 1091s ok 6 /strvbuilder/ref 1091s ok 7 /strvbuilder/unref_to_strv 1091s # End of strvbuilder tests 1091s TAP version 14 1091s ok - glib/cxx-2b.test 1091s # Running test: glib/srvtarget.test 1091s # random seed: R02Sf5726a6895f876abeae392f152bf58f9 1091s 1..2 1091s # Start of gtask tests 1091s # 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. 1091s ok 1 /gtask/name 1091s # Start of name tests 1091s # 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. 1091s ok 2 /gtask/name/macro-wrapper 1091s # End of name tests 1091s # End of gtask tests 1091s TAP version 14 1091s # random seed: R02S4c1b573fd849ce26eff613ee4a1c64e3 1091s 1..1 1091s # Start of srvtarget tests 1092s ok 1 /srvtarget/srv-target-ordering 1092s # slow test /srvtarget/srv-target-ordering executed in 0.94 secs 1092s # End of srvtarget tests 1092s ok - glib/srvtarget.test 1092s # Running test: glib/cxx-03.test 1092s TAP version 14 1092s # random seed: R02S7ffaf4646a22609fbc4382d9f5f0879a 1092s 1..2 1092s # Start of gtask tests 1092s # 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. 1092s ok 1 /gtask/name 1092s # Start of name tests 1092s # 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. 1092s ok - glib/cxx-03.test 1092s # Running test: glib/type-flags.test 1092s ok - glib/type-flags.test 1092s # Running test: glib/refcount-macro.test 1092s ok - glib/refcount-macro.test 1092s # Running test: glib/throws.test 1092s ok 2 /gtask/name/macro-wrapper 1092s # End of name tests 1092s # End of gtask tests 1092s TAP version 14 1092s # random seed: R02Sff4c5485bf38159d10c01aa7168c1e0e 1092s 1..4 1092s # Start of type tests 1092s # Start of flags tests 1092s ok 1 /type/flags/interface 1092s ok 2 /type/flags/final 1092s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1092s ok 3 /type/flags/deprecated 1092s # Start of final tests 1092s ok 4 /type/flags/final/instance-check 1092s # End of final tests 1092s # End of flags tests 1092s # End of type tests 1092s TAP version 14 1092s # random seed: R02S2700f2d18ecd34269966065d57c307d7 1092s 1..4 1092s # Start of refcount tests 1092s ok 1 /refcount/grefcount 1092s ok 2 /refcount/gatomicrefcount 1092s # Start of grefcount tests 1092s ok 3 /refcount/grefcount/saturation 1092s # End of grefcount tests 1092s # Start of gatomicrefcount tests 1092s ok 4 /refcount/gatomicrefcount/saturation 1092s # End of gatomicrefcount tests 1092s # End of refcount tests 1092s TAP version 14 1092s # random seed: R02Sedd9d4782b3ff83a15901b2225575745 1092s 1..3 1092s # Start of throws tests 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_V8HW52/throws/invoke-gerror/.dirs/runtime 1092s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1092s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1092s ok 1 /throws/invoke-gerror 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_V8HW52/throws/vfunc-can-throw-gerror/.dirs/runtime 1092s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1092s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1092s ok - glib/throws.test 1092s # Running test: glib/utf8-performance.test 1092s ok 2 /throws/vfunc-can-throw-gerror 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_V8HW52/throws/callback-can-throw-gerror/.dirs/runtime 1092s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1092s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1092s ok 3 /throws/callback-can-throw-gerror 1092s # End of throws tests 1092s TAP version 14 1092s # random seed: R02Sc8d35ece151dd2a4f1240c33b9215e42 1092s 1..36 1092s # Start of utf8 tests 1092s # Start of perf tests 1092s # Start of get_char tests 1092s # max perf: inf MB/s 1092s ok 1 /utf8/perf/get_char/ascii 1092s # max perf: inf MB/s 1092s ok 2 /utf8/perf/get_char/latin1 1092s # max perf: 160.0 MB/s 1092s ok 3 /utf8/perf/get_char/cyrillic 1092s # max perf: inf MB/s 1092s ok 4 /utf8/perf/get_char/han 1092s # End of get_char tests 1092s # Start of get_char-backwards tests 1092s # max perf: 43.0 MB/s 1092s ok 5 /utf8/perf/get_char-backwards/ascii 1092s # max perf: 67.0 MB/s 1092s ok 6 /utf8/perf/get_char-backwards/latin1 1092s # max perf: 160.0 MB/s 1092s ok 7 /utf8/perf/get_char-backwards/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 8 /utf8/perf/get_char-backwards/han 1092s # End of get_char-backwards tests 1092s # Start of get_char_validated tests 1092s # max perf: 43.0 MB/s 1092s ok 9 /utf8/perf/get_char_validated/ascii 1092s # max perf: 67.0 MB/s 1092s ok 10 /utf8/perf/get_char_validated/latin1 1092s # max perf: 160.0 MB/s 1092s ok 11 /utf8/perf/get_char_validated/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 12 /utf8/perf/get_char_validated/han 1092s # End of get_char_validated tests 1092s # Start of utf8_to_ucs4 tests 1092s # max perf: 43.0 MB/s 1092s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1092s # max perf: 67.0 MB/s 1092s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1092s # max perf: 80.0 MB/s 1092s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 16 /utf8/perf/utf8_to_ucs4/han 1092s # End of utf8_to_ucs4 tests 1092s # Start of utf8_to_ucs4-sized tests 1092s # max perf: inf MB/s 1092s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1092s # max perf: 67.0 MB/s 1092s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1092s # max perf: 160.0 MB/s 1092s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1092s # max perf: inf MB/s 1092s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1092s # End of utf8_to_ucs4-sized tests 1092s # Start of utf8_to_ucs4_fast tests 1092s # max perf: 43.0 MB/s 1092s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1092s # max perf: 67.0 MB/s 1092s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1092s # max perf: inf MB/s 1092s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1092s # End of utf8_to_ucs4_fast tests 1092s # Start of utf8_to_ucs4_fast-sized tests 1092s # max perf: inf MB/s 1092s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1092s # max perf: 67.0 MB/s 1092s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1092s # max perf: 160.0 MB/s 1092s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1092s # End of utf8_to_ucs4_fast-sized tests 1092s # Start of utf8_validate tests 1092s # max perf: inf MB/s 1092s ok 29 /utf8/perf/utf8_validate/ascii 1092s # max perf: inf MB/s 1092s ok 30 /utf8/perf/utf8_validate/latin1 1092s # max perf: inf MB/s 1092s ok 31 /utf8/perf/utf8_validate/cyrillic 1092s # max perf: 156.0 MB/s 1092s ok 32 /utf8/perf/utf8_validate/han 1092s # End of utf8_validate tests 1092s # Start of utf8_validate-sized tests 1092s # max perf: inf MB/s 1092s ok 33 /utf8/perf/utf8_validate-sized/ascii 1092s # max perf: inf MB/s 1092s ok 34 /utf8/perf/utf8_validate-sized/latin1 1092s # max perf: inf MB/s 1092s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1092s # max perf: inf MB/s 1092s ok 36 /utf8/perf/utf8_validate-sized/han 1092s # End of utf8_validate-sized tests 1092s # End of perf tests 1092s # End of utf8 tests 1092s TAP version 14 1092s # random seed: R02Sd45d7cf10d72051b6d923ab8005028cb 1092s 1..7 1092s # Start of portal-support tests 1092s # Start of snap tests 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/no-snapctl: No such file or directory 1092s ok 1 /portal-support/snap/no-snapctl 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/none: No such file or directory 1092s ok 2 /portal-support/snap/none 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/all: No such file or directory 1092s ok 3 /portal-support/snap/all 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/desktop-only: No such file or directory 1092s ok 4 /portal-support/snap/desktop-only 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/network-only: No such file or directory 1092s ok 5 /portal-support/snap/network-only 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/gsettings-only: No such file or directory 1092s ok 6 /portal-support/snap/gsettings-only 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime 1092s # Created snap.yaml in /tmp/test_portal-support-snap_CNQW52/meta/snap.yaml 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s ok - glib/utf8-performance.test 1092s # Running test: glib/portal-support-snap.test 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s # Created snapctl in /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52/portal-support/snap/updates-dynamically: No such file or directory 1092s ok 7 /portal-support/snap/updates-dynamically 1092s # End of snap tests 1092s # End of portal-support tests 1092s Unable to clean up temporary directory /tmp/test_portal-support-snap_CNQW52: No such file or directory 1092s TAP version 14 1092s # random seed: R02S76569135e711fd00d2d87924ccbdcd63 1092s 1..2 1092s # Start of gtask tests 1092s # 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. 1092s ok 1 /gtask/name 1092s # Start of name tests 1092s # 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. 1092s ok 2 /gtask/name/macro-wrapper 1092s # End of name tests 1092s # End of gtask tests 1092s TAP version 14 1092s # random seed: R02S6ef7dad749cfe4fadf0c3af089e5fb1e 1092s 1..1 1092s # Start of application-command-line tests 1092s ok 1 /application-command-line/basic-properties 1092s # End of application-command-line tests 1092s ok - glib/portal-support-snap.test 1092s # Running test: glib/cxx-98.test 1092s ok - glib/cxx-98.test 1092s # Running test: glib/application-command-line.test 1092s ok - glib/application-command-line.test 1092s # Running test: glib/tls-bindings.test 1092s ok - glib/tls-bindings.test 1092s # Running test: glib/string.test 1092s ok - glib/string.test 1092s # Running test: glib/dbus-appinfo.test 1092s TAP version 14 1092s # random seed: R02Sf9715bbd1f847f90e64582da55402ce1 1092s 1..2 1092s # Start of tls-connection tests 1092s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1092s ok 1 /tls-connection/get-tls-channel-binding 1092s ok 2 /tls-connection/get-dtls-channel-binding 1092s # End of tls-connection tests 1092s TAP version 14 1092s # random seed: R02See72386318ba3d952625a436f509705b 1092s 1..23 1092s # Start of string tests 1092s ok 1 /string/test-string-chunks 1092s ok 2 /string/test-string-chunk-insert 1092s ok 3 /string/test-string-new 1092s ok 4 /string/test-string-printf 1092s ok 5 /string/test-string-assign 1092s ok 6 /string/test-string-append-c 1092s ok 7 /string/test-string-append 1092s ok 8 /string/test-string-append-vprintf 1092s ok 9 /string/test-string-prepend-c 1092s ok 10 /string/test-string-prepend 1092s ok 11 /string/test-string-insert 1092s ok 12 /string/test-string-insert-unichar 1092s ok 13 /string/test-string-equal 1092s ok 14 /string/test-string-truncate 1092s ok 15 /string/test-string-overwrite 1092s ok 16 /string/test-string-nul-handling 1092s ok 17 /string/test-string-up-down 1092s ok 18 /string/test-string-set-size 1092s ok 19 /string/test-string-to-bytes 1092s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1092s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1092s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1092s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1092s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1092s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1092s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1092s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1092s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1092s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1092s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1092s # -> 4 replacements, "fd fr fals" 1092s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1092s # -> 3 replacements, "aaaaaaaaa" 1092s # 7: Replacing "a" with "" (limit 0) in "aaa" 1092s # -> 3 replacements, "" 1092s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1092s # -> 1 replacements, "bba" 1092s # 9: Replacing "" with "bar" (limit 0) in "foo" 1092s # -> 4 replacements, "barfbarobarobar" 1092s # 10: Replacing "" with "bar" (limit 1) in "foo" 1092s # -> 1 replacements, "barfoo" 1092s # 11: Replacing "" with "bar" (limit 2) in "foo" 1092s # -> 2 replacements, "barfbaroo" 1092s # 12: Replacing "" with "bar" (limit 3) in "foo" 1092s # -> 3 replacements, "barfbarobaro" 1092s # 13: Replacing "" with "bar" (limit 4) in "foo" 1092s # -> 4 replacements, "barfbarobarobar" 1092s # 14: Replacing "" with "bar" (limit 5) in "foo" 1092s # -> 4 replacements, "barfbarobarobar" 1092s # 15: Replacing "" with "x" (limit 0) in "" 1092s # -> 1 replacements, "x" 1092s # 16: Replacing "" with "" (limit 0) in "" 1092s # -> 1 replacements, "" 1092s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1092s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1092s ok 20 /string/test-string-replace 1092s ok 21 /string/test-string-steal 1092s ok 22 /string/test-string-new-take 1092s # Start of test-string-new-take tests 1092s ok 23 /string/test-string-new-take/null 1092s # End of test-string-new-take tests 1092s # End of string tests 1092s TAP version 14 1092s # random seed: R02Sb89c20d41fa77fb98d9de2070a4acc0a 1092s 1..7 1092s # Start of appinfo tests 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/runtime 1092s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1092s ok 1 /appinfo/dbusappinfo 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/runtime 1092s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Documents 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/config 1092s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1092s # fake-document-portal cancelled 1092s ok 2 /appinfo/flatpak-doc-export 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/runtime 1092s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Documents 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/config 1092s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1092s # fake-document-portal cancelled 1092s ok 3 /appinfo/flatpak-missing-doc-export 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/runtime 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Desktop 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/config 1092s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1092s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1092s # Response emitted 1092s # fake-desktop-portal cancelled 1092s ok 4 /appinfo/portal-open-file 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/runtime 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Desktop 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/config 1092s # Got open file request for http://example.com 1092s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1092s # Response emitted 1092s # fake-desktop-portal cancelled 1092s ok 5 /appinfo/portal-open-uri 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/runtime 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Desktop 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/config 1092s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1092s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1781398599 1092s # Response emitted 1092s # fake-desktop-portal cancelled 1092s ok 6 /appinfo/portal-open-file-async 1092s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/home 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/cache 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/system-config2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/config 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/system-data2 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/data 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/state 1092s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/runtime 1092s # Acquired a message bus connection 1092s # Acquired the name org.freedesktop.portal.Desktop 1092s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_JB3V52/appinfo/portal-open-uri-async/.dirs/config 1092s # Got open file request for http://example.com 1092s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio2132760812 1092s # Response emitted 1092s # fake-desktop-portal cancelled 1092s ok 7 /appinfo/portal-open-uri-async 1092s # End of appinfo tests 1092s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1092s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1092s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1092s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1092s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1092s TAP version 14 1092s # random seed: R02S592dcb7506fa2c586de08cf9a3eadd3e 1092s 1..7 1092s # Start of signal tests 1092s # Start of handler tests 1092s # min perf: connected 1 handlers in 0.000 seconds 1092s ok 1 /signal/handler/connect-many 1092s # min perf: disconnected 1 handlers in 0.000 seconds 1092s ok 2 /signal/handler/disconnect-many-ordered 1092s # min perf: disconnected 1 handlers in 0.000 seconds 1092s ok 3 /signal/handler/disconnect-many-inverse 1092s # min perf: disconnected 1 handlers in 0.000 seconds 1092s ok 4 /signal/handler/disconnect-many-random 1092s # min perf: disconnected 1 handlers in 0.000 seconds 1092s ok 5 /signal/handler/disconnect-2-signals 1092s # min perf: disconnected 1 handlers in 0.000 seconds 1092s ok 6 /signal/handler/disconnect-2-objects 1092s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1092s ok 7 /signal/handler/block-many 1092s # End of handler tests 1092s # End of signal tests 1092s TAP version 14 1092s # random seed: R02S010c794d8ab16ede471a5f1969af1e91 1092s 1..7 1092s # Start of thread tests 1092s ok 1 /thread/thread1 1092s ok 2 /thread/thread2 1092s ok 3 /thread/thread3 1092s ok 4 /thread/thread4 1092s ok 5 /thread/thread5 1092s ok 6 /thread/thread6 1092s ok 7 /thread/thread7 1092s # End of thread tests 1092s TAP version 14 1092s # random seed: R02S71d544a2776e77ef5cfa38559f984988 1092s 1..238 1092s # Start of utf8 tests 1092s # Vector 0 1092s # Vector 1 1092s # Vector 2 1092s # Vector 3 1092s # Vector 4 1092s # Vector 5 1092s # Vector 6 1092s # Vector 7 1092s # Vector 8 1092s # Vector 9 1092s # Vector 10 1092s # Vector 11 1092s # Vector 12 1092s # Vector 13 1092s # Vector 14 1092s # Vector 15 1092s # Vector 16 1092s # Vector 17 1092s # Vector 18 1092s # Vector 19 1092s # Vector 20 1092s # Vector 21 1092s # Vector 22 1092s # Vector 23 1092s # Vector 24 1092s # Vector 25 1092s # Vector 26 1092s # Vector 27 1092s ok 1 /utf8/get-char-validated 1092s # Start of validate tests 1092s ok 2 /utf8/validate/0 1092s ok 3 /utf8/validate/1 1092s ok 4 /utf8/validate/2 1092s ok 5 /utf8/validate/3 1092s ok 6 /utf8/validate/4 1092s ok 7 /utf8/validate/5 1092s ok 8 /utf8/validate/6 1092s ok 9 /utf8/validate/7 1092s ok 10 /utf8/validate/8 1092s ok 11 /utf8/validate/9 1092s ok 12 /utf8/validate/10 1092s ok 13 /utf8/validate/11 1092s ok 14 /utf8/validate/12 1092s ok 15 /utf8/validate/13 1092s ok 16 /utf8/validate/14 1092s ok 17 /utf8/validate/15 1092s ok 18 /utf8/validate/16 1092s ok 19 /utf8/validate/17 1092s ok 20 /utf8/validate/18 1092s ok 21 /utf8/validate/19 1092s ok 22 /utf8/validate/20 1092s ok 23 /utf8/validate/21 1092s ok 24 /utf8/validate/22 1092s ok 25 /utf8/validate/23 1092s ok 26 /utf8/validate/24 1092s ok 27 /utf8/validate/25 1092s ok 28 /utf8/validate/26 1092s ok 29 /utf8/validate/27 1092s ok 30 /utf8/validate/28 1092s ok 31 /utf8/validate/29 1092s ok 32 /utf8/validate/30 1092s ok 33 /utf8/validate/31 1092s ok 34 /utf8/validate/32 1092s ok 35 /utf8/validate/33 1092s ok 36 /utf8/validate/34 1092s ok 37 /utf8/validate/35 1092s ok 38 /utf8/validate/36 1092s ok 39 /utf8/validate/37 1092s ok 40 /utf8/validate/38 1092s ok 41 /utf8/validate/39 1092s ok 42 /utf8/validate/40 1092s ok 43 /utf8/validate/41 1092s ok 44 /utf8/validate/42 1092s ok 45 /utf8/validate/43 1092s ok 46 /utf8/validate/44 1092s ok 47 /utf8/validate/45 1092s ok 48 /utf8/validate/46 1092s ok 49 /utf8/validate/47 1092s ok 50 /utf8/validate/48 1092s ok 51 /utf8/validate/49 1092s ok 52 /utf8/validate/50 1092s ok 53 /utf8/validate/51 1092s ok 54 /utf8/validate/52 1092s ok 55 /utf8/validate/53 1092s ok 56 /utf8/validate/54 1092s ok - glib/dbus-appinfo.test 1092s # Running test: glib/signal-handler.test 1092s ok - glib/signal-handler.test 1092s # Running test: glib/thread.test 1092s ok - glib/thread.test 1092s # Running test: glib/utf8-validate.test 1092s ok 57 /utf8/validate/55 1092s ok 58 /utf8/validate/56 1092s ok 59 /utf8/validate/57 1092s ok 60 /utf8/validate/58 1092s ok 61 /utf8/validate/59 1092s ok 62 /utf8/validate/60 1092s ok 63 /utf8/validate/61 1092s ok 64 /utf8/validate/62 1092s ok 65 /utf8/validate/63 1092s ok 66 /utf8/validate/64 1092s ok 67 /utf8/validate/65 1092s ok 68 /utf8/validate/66 1092s ok 69 /utf8/validate/67 1092s ok 70 /utf8/validate/68 1092s ok 71 /utf8/validate/69 1092s ok 72 /utf8/validate/70 1092s ok 73 /utf8/validate/71 1092s ok 74 /utf8/validate/72 1092s ok 75 /utf8/validate/73 1092s ok 76 /utf8/validate/74 1092s ok 77 /utf8/validate/75 1092s ok 78 /utf8/validate/76 1092s ok 79 /utf8/validate/77 1092s ok 80 /utf8/validate/78 1092s ok 81 /utf8/validate/79 1092s ok 82 /utf8/validate/80 1092s ok 83 /utf8/validate/81 1092s ok 84 /utf8/validate/82 1092s ok 85 /utf8/validate/83 1092s ok 86 /utf8/validate/84 1092s ok 87 /utf8/validate/85 1092s ok 88 /utf8/validate/86 1092s ok 89 /utf8/validate/87 1092s ok 90 /utf8/validate/88 1092s ok 91 /utf8/validate/89 1092s ok 92 /utf8/validate/90 1092s ok 93 /utf8/validate/91 1092s ok 94 /utf8/validate/92 1092s ok 95 /utf8/validate/93 1092s ok 96 /utf8/validate/94 1092s ok 97 /utf8/validate/95 1092s ok 98 /utf8/validate/96 1092s ok 99 /utf8/validate/97 1092s ok 100 /utf8/validate/98 1092s ok 101 /utf8/validate/99 1092s ok 102 /utf8/validate/100 1092s ok 103 /utf8/validate/101 1092s ok 104 /utf8/validate/102 1092s ok 105 /utf8/validate/103 1092s ok 106 /utf8/validate/104 1092s ok 107 /utf8/validate/105 1092s ok 108 /utf8/validate/106 1092s ok 109 /utf8/validate/107 1092s ok 110 /utf8/validate/108 1092s ok 111 /utf8/validate/109 1092s ok 112 /utf8/validate/110 1092s ok 113 /utf8/validate/111 1092s ok 114 /utf8/validate/112 1092s ok 115 /utf8/validate/113 1092s ok 116 /utf8/validate/114 1092s ok 117 /utf8/validate/115 1092s ok 118 /utf8/validate/116 1092s ok 119 /utf8/validate/117 1092s ok 120 /utf8/validate/118 1092s ok 121 /utf8/validate/119 1092s ok 122 /utf8/validate/120 1092s ok 123 /utf8/validate/121 1092s ok 124 /utf8/validate/122 1092s ok 125 /utf8/validate/123 1092s ok 126 /utf8/validate/124 1092s ok 127 /utf8/validate/125 1092s ok 128 /utf8/validate/126 1092s ok 129 /utf8/validate/127 1092s ok 130 /utf8/validate/128 1092s ok 131 /utf8/validate/129 1092s ok 132 /utf8/validate/130 1092s ok 133 /utf8/validate/131 1092s ok 134 /utf8/validate/132 1092s ok 135 /utf8/validate/133 1092s ok 136 /utf8/validate/134 1092s ok 137 /utf8/validate/135 1092s ok 138 /utf8/validate/136 1092s ok 139 /utf8/validate/137 1092s ok 140 /utf8/validate/138 1092s ok 141 /utf8/validate/139 1092s ok 142 /utf8/validate/140 1092s ok 143 /utf8/validate/141 1092s ok 144 /utf8/validate/142 1092s ok 145 /utf8/validate/143 1092s ok 146 /utf8/validate/144 1092s ok 147 /utf8/validate/145 1092s ok 148 /utf8/validate/146 1092s ok 149 /utf8/validate/147 1092s ok 150 /utf8/validate/148 1092s ok 151 /utf8/validate/149 1092s ok 152 /utf8/validate/150 1092s ok 153 /utf8/validate/151 1092s ok 154 /utf8/validate/152 1092s ok 155 /utf8/validate/153 1092s ok 156 /utf8/validate/154 1092s ok 157 /utf8/validate/155 1092s ok 158 /utf8/validate/156 1092s ok 159 /utf8/validate/157 1092s ok 160 /utf8/validate/158 1092s ok 161 /utf8/validate/159 1092s ok 162 /utf8/validate/160 1092s ok 163 /utf8/validate/161 1092s ok 164 /utf8/validate/162 1092s ok 165 /utf8/validate/163 1092s ok 166 /utf8/validate/164 1092s ok 167 /utf8/validate/165 1092s ok 168 /utf8/validate/166 1092s ok 169 /utf8/validate/167 1092s ok 170 /utf8/validate/168 1092s ok 171 /utf8/validate/169 1092s ok 172 /utf8/validate/170 1092s ok 173 /utf8/validate/171 1092s ok 174 /utf8/validate/172 1092s ok 175 /utf8/validate/173 1092s ok 176 /utf8/validate/174 1092s ok 177 /utf8/validate/175 1092s ok 178 /utf8/validate/176 1092s ok 179 /utf8/validate/177 1092s ok 180 /utf8/validate/178 1092s ok 181 /utf8/validate/179 1092s ok 182 /utf8/validate/180 1092s ok 183 /utf8/validate/181 1092s ok 184 /utf8/validate/182 1092s ok 185 /utf8/validate/183 1092s ok 186 /utf8/validate/184 1092s ok 187 /utf8/validate/185 1092s ok 188 /utf8/validate/186 1092s ok 189 /utf8/validate/187 1092s ok 190 /utf8/validate/188 1092s ok 191 /utf8/validate/189 1092s ok 192 /utf8/validate/190 1092s ok 193 /utf8/validate/191 1092s ok 194 /utf8/validate/192 1092s ok 195 /utf8/validate/193 1092s ok 196 /utf8/validate/194 1092s ok 197 /utf8/validate/195 1092s ok 198 /utf8/validate/196 1092s ok 199 /utf8/validate/197 1092s ok 200 /utf8/validate/198 1092s ok 201 /utf8/validate/199 1092s ok 202 /utf8/validate/200 1092s ok 203 /utf8/validate/201 1092s ok 204 /utf8/validate/202 1092s ok 205 /utf8/validate/203 1092s ok 206 /utf8/validate/204 1092s ok 207 /utf8/validate/205 1092s ok 208 /utf8/validate/206 1092s ok 209 /utf8/validate/207 1092s ok 210 /utf8/validate/208 1092s ok 211 /utf8/validate/209 1092s ok 212 /utf8/validate/210 1092s ok 213 /utf8/validate/211 1092s ok 214 /utf8/validate/212 1092s ok 215 /utf8/validate/213 1092s ok 216 /utf8/validate/214 1092s ok 217 /utf8/validate/215 1092s ok 218 /utf8/validate/216 1092s ok 219 /utf8/validate/217 1092s ok 220 /utf8/validate/218 1092s ok 221 /utf8/validate/219 1092s ok 222 /utf8/validate/220 1092s ok 223 /utf8/validate/221 1092s ok 224 /utf8/validate/222 1092s ok 225 /utf8/validate/223 1092s ok 226 /utf8/validate/224 1092s ok 227 /utf8/validate/225 1092s ok 228 /utf8/validate/226 1092s ok 229 /utf8/validate/227 1092s ok 230 /utf8/validate/228 1092s ok 231 /utf8/validate/229 1092s ok 232 /utf8/validate/230 1092s ok 233 /utf8/validate/231 1092s ok 234 /utf8/validate/232 1092s ok 235 /utf8/validate/233 1092s ok 236 /utf8/validate/234 1092s ok 237 /utf8/validate/235 1092s ok 238 /utf8/validate/236 1092s # End of validate tests 1092s # End of utf8 tests 1092s TAP version 14 1092s # random seed: R02S14cc73bfce28368605b0b1acce390d16 1092s 1..9 1092s # Start of unicode tests 1092s # Start of collate tests 1092s ok 1 /unicode/collate/0 1092s ok 2 /unicode/collate/1 1092s ok 3 /unicode/collate/2 1092s # End of collate tests 1092s # Start of collate-key tests 1092s ok 4 /unicode/collate-key/0 1092s ok 5 /unicode/collate-key/1 1092s ok 6 /unicode/collate-key/2 1092s # End of collate-key tests 1092s # Start of collate-filename tests 1092s ok 7 /unicode/collate-filename/0 1092s ok 8 /unicode/collate-filename/1 1092s ok 9 /unicode/collate-filename/2 1092s # End of collate-filename tests 1092s # End of unicode tests 1092s ok - glib/utf8-validate.test 1092s # Running test: glib/collate.test 1092s ok - glib/collate.test 1092s # Running test: glib/convert.test 1092s TAP version 14 1092s # random seed: R02Sa47847dca88faf43fd48ec779d7ff1e8 1092s 1..14 1092s # Start of conversion tests 1092s ok 1 /conversion/no-conv 1092s ok 2 /conversion/iconv-state 1092s ok 3 /conversion/illegal-sequence 1092s ok 4 /conversion/byte-order 1092s ok 5 /conversion/unicode 1092s ok 6 /conversion/filename-utf8 1092s ok 7 /conversion/filename-display 1092s ok 8 /conversion/convert-embedded-nul 1092s # Start of locale-to-utf8 tests 1092s ok 9 /conversion/locale-to-utf8/embedded-nul 1092s # Start of embedded-nul tests 1092s # Start of subprocess tests 1092s # End of subprocess tests 1092s # End of embedded-nul tests 1092s # End of locale-to-utf8 tests 1092s # Start of locale-from-utf8 tests 1092s ok 10 /conversion/locale-from-utf8/embedded-nul 1092s # Start of embedded-nul tests 1092s # Start of subprocess tests 1092s # End of subprocess tests 1092s # End of embedded-nul tests 1092s # End of locale-from-utf8 tests 1092s # Start of filename-to-utf8 tests 1092s ok 11 /conversion/filename-to-utf8/embedded-nul 1092s # Start of embedded-nul tests 1092s # Start of subprocess tests 1092s # End of subprocess tests 1092s # End of embedded-nul tests 1092s # End of filename-to-utf8 tests 1092s # Start of filename-from-utf8 tests 1092s ok 12 /conversion/filename-from-utf8/embedded-nul 1092s # Start of embedded-nul tests 1092s # Start of subprocess tests 1092s # End of subprocess tests 1092s # End of embedded-nul tests 1092s # End of filename-from-utf8 tests 1092s # Start of filename-from-uri tests 1092s ok 13 /conversion/filename-from-uri/query-is-ignored 1092s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1092s # End of filename-from-uri tests 1092s # End of conversion tests 1092s ok - glib/convert.test 1092s # Running test: glib/performance-threaded.test 1092s Running test "liststore-is-a" 1092s # Executing: glib/performance-threaded.test 1093s 2291 runs, min/avg/max = 0.418/0.436/0.790 ms 1093s Running test "liststore-interface-peek" 1094s 2754 runs, min/avg/max = 0.348/0.363/0.656 ms 1094s Running test "liststore-interface-peek-same" 1095s 2625 runs, min/avg/max = 0.358/0.381/0.757 ms 1095s ok - glib/performance-threaded.test 1095s # Running test: glib/testing-nonfatal.test 1095s ok - glib/testing-nonfatal.test 1095s TAP version 14 1095s # random seed: R02S812bb9160fb281b47595e19e0844c8c8 1095s ** 1095s 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?") 1095s # 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?") 1095s # Running test: glib/completion.test 1095s TAP version 14 1095s # random seed: R02S1d798eb8030db423db3c7344c73c3844 1095s ok - glib/completion.test 1095s # Running test: glib/data-output-stream.test 1095s ok - glib/data-output-stream.test 1095s # Running test: glib/utf8-pointer.test 1095s 1..1 1095s # Start of completion tests 1095s ok 1 /completion/test-completion 1095s # End of completion tests 1095s TAP version 14 1095s # random seed: R02S5a6a1197462bd2257993ea7565d645ef 1095s 1..7 1095s # Start of data-output-stream tests 1095s ok 1 /data-output-stream/basic 1095s ok 2 /data-output-stream/write-lines-LF 1095s ok 3 /data-output-stream/write-lines-CR 1095s ok 4 /data-output-stream/write-lines-CR-LF 1095s ok 5 /data-output-stream/write-int 1095s ok 6 /data-output-stream/seek 1095s ok 7 /data-output-stream/truncate 1095s # End of data-output-stream tests 1095s TAP version 14 1095s # random seed: R02Sed860d1c9d3b8cca246ca20f20631c9c 1095s 1..3 1095s # Start of utf8 tests 1096s ok 1 /utf8/offsets 1096s # slow test /utf8/offsets executed in 0.80 secs 1096s ok 2 /utf8/lengths 1096s ok 3 /utf8/find 1096s # End of utf8 tests 1096s ok - glib/utf8-pointer.test 1096s # Running test: glib/gthash.test 1096s TAP version 14 1096s # random seed: R02S1def763ba2db826ac23d3f92942a1489 1096s 1..1 1096s # Start of gthash tests 1096s ok 1 /gthash/build-retrieve 1096s # End of gthash tests 1096s ok - glib/gthash.test 1096s # Running test: glib/slice.test 1096s TAP version 14 1096s # random seed: R02S2ef4b6d01f27c956c1238f85a1a70ec3 1096s 1..3 1096s # Start of slice tests 1096s ok 1 /slice/copy 1096s ok 2 /slice/chain 1096s ok 3 /slice/allocate 1096s # End of slice tests 1096s ok - glib/slice.test 1096s # Running test: glib/repository-search-paths.test 1096s TAP version 14 1096s # random seed: R02S09892da13bc33be5f8c7adb756939cf9 1096s 1..4 1096s # Start of repository tests 1096s # Start of search-paths tests 1096s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/home 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/cache 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/system-config2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/config 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/system-data2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/data 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/state 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_A89T52/repository/search-paths/default/.dirs/runtime 1096s ok 1 /repository/search-paths/default 1096s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/home 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/cache 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/system-config2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/config 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/system-data2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/data 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/state 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_A89T52/repository/search-paths/prepend/.dirs/runtime 1096s ok 2 /repository/search-paths/prepend 1096s # End of search-paths tests 1096s # Start of library-paths tests 1096s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/home 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/cache 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/system-config2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/config 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/system-data2 1096s ok - glib/repository-search-paths.test 1096s # Running test: glib/markup-collect.test 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/data 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/state 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_A89T52/repository/library-paths/default/.dirs/runtime 1096s ok 3 /repository/library-paths/default 1096s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/home 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/cache 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/system-config2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/config 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/system-data2 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/data 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/state 1096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_A89T52/repository/library-paths/prepend/.dirs/runtime 1096s ok 4 /repository/library-paths/prepend 1096s # End of library-paths tests 1096s # End of repository tests 1096s TAP version 14 1096s # random seed: R02S4cc766bcac5a97738f4b56cbbab99390 1096s 1..21 1096s # Start of markup tests 1096s # Start of collect tests 1096s ok 1 /markup/collect/0 1096s ok 2 /markup/collect/1 1096s ok 3 /markup/collect/2 1096s ok 4 /markup/collect/3 1096s ok 5 /markup/collect/4 1096s ok 6 /markup/collect/5 1096s ok 7 /markup/collect/6 1096s ok 8 /markup/collect/7 1096s ok 9 /markup/collect/8 1096s ok 10 /markup/collect/9 1096s ok 11 /markup/collect/10 1096s ok 12 /markup/collect/11 1096s ok 13 /markup/collect/12 1096s ok 14 /markup/collect/13 1096s ok 15 /markup/collect/14 1096s ok 16 /markup/collect/15 1096s ok 17 /markup/collect/16 1096s ok 18 /markup/collect/17 1096s ok 19 /markup/collect/18 1096s ok - glib/markup-collect.test 1096s # Running test: glib/memory-monitor-portal.test 1096s ok 20 /markup/collect/19 1096s ok 21 /markup/collect/cleanup 1096s # End of collect tests 1096s # End of markup tests 1096s TAP version 13 1096s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1096s 1..1 1096s ok - glib/memory-monitor-portal.test 1096s # Running test: glib/accumulator.test 1096s TAP version 14 1096s # random seed: R02S355ba4267b11039d8d9bafc80bb695dc 1096s 1..1 1096s # Start of gobject tests 1096s ok 1 /gobject/accumulator 1096s # End of gobject tests 1096s ok - glib/accumulator.test 1096s # Running test: glib/onceinit.test 1096s TAP version 14 1096s # random seed: R02S5d500f009ee693b7ddf04cea73975626 1096s 1..1 1096s # Start of thread tests 1097s ok 1 /thread/onceinit 1097s # End of thread tests 1097s ok - glib/onceinit.test 1097s # Running test: glib/object.test 1097s TAP version 14 1097s # random seed: R02S5fcfce66e78d1905c98aeb62ebcfa384 1097s 1..2 1097s # Start of object tests 1097s # Start of constructor tests 1097s ok 1 /object/constructor/singleton 1097s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1097s # End of constructor tests 1097s # End of object tests 1097s ok - glib/object.test 1097s # Running test: glib/codegen.py.test 1097s TAP version 13 1097s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpl6awq52q 1097s # /tmp/tmpl6awq52q/tmpnpm709u5.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl6awq52q/tmpnpm709u5.xml', '--output', '-', '--header'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifndef __STDOUT__ 1097s # #define __STDOUT__ 1097s # 1097s # #include 1097s # 1097s # G_BEGIN_DECLS 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # /* Declarations for org.project.UsefulInterface */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1097s # 1097s # struct _OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1097s # 1097s # struct _OrgProjectUsefulInterfaceIface 1097s # { 1097s # GTypeInterface parent_iface; 1097s # 1097s # gboolean (*handle_useful_method) ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # }; 1097s # 1097s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1097s # 1097s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1097s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1097s # 1097s # 1097s # /* D-Bus method call completion functions: */ 1097s # void org_project_useful_interface_complete_useful_method ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # 1097s # 1097s # /* D-Bus method calls: */ 1097s # void org_project_useful_interface_call_useful_method ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_finish ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_sync ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxy 1097s # { 1097s # /*< private >*/ 1097s # GDBusProxy parent_instance; 1097s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxyClass 1097s # { 1097s # GDBusProxyClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1097s # #endif 1097s # 1097s # void org_project_useful_interface_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # void org_project_useful_interface_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeleton 1097s # { 1097s # /*< private >*/ 1097s # GDBusInterfaceSkeleton parent_instance; 1097s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeletonClass 1097s # { 1097s # GDBusInterfaceSkeletonClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1097s # #endif 1097s # 1097s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1097s # 1097s # 1097s # G_END_DECLS 1097s # 1097s # #endif /* __STDOUT__ */ 1097s # Error: 1097s # 1097s # /tmp/tmpl6awq52q/tmpaozkqecq.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl6awq52q/tmpaozkqecq.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifndef __STDOUT__ 1097s # #define __STDOUT__ 1097s # 1097s # #include 1097s # 1097s # G_BEGIN_DECLS 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # /* Declarations for org.project.UsefulInterface */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1097s # 1097s # struct _OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1097s # 1097s # struct _OrgProjectUsefulInterfaceIface 1097s # { 1097s # GTypeInterface parent_iface; 1097s # 1097s # gboolean (*handle_useful_method) ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # }; 1097s # 1097s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1097s # 1097s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1097s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1097s # 1097s # 1097s # /* D-Bus method call completion functions: */ 1097s # void org_project_useful_interface_complete_useful_method ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # 1097s # 1097s # /* D-Bus method calls: */ 1097s # void org_project_useful_interface_call_useful_method ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_finish ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_sync ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxy 1097s # { 1097s # /*< private >*/ 1097s # GDBusProxy parent_instance; 1097s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxyClass 1097s # { 1097s # GDBusProxyClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1097s # #endif 1097s # 1097s # void org_project_useful_interface_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # void org_project_useful_interface_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeleton 1097s # { 1097s # /*< private >*/ 1097s # GDBusInterfaceSkeleton parent_instance; 1097s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeletonClass 1097s # { 1097s # GDBusInterfaceSkeletonClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1097s # #endif 1097s # 1097s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1097s # 1097s # 1097s # G_END_DECLS 1097s # 1097s # #endif /* __STDOUT__ */ 1097s # Error: 1097s # 1097s # /tmp/tmpl6awq52q/tmpvlyvscln.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl6awq52q/tmpvlyvscln.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifndef __STDOUT__ 1097s # #define __STDOUT__ 1097s # 1097s # #include 1097s # 1097s # G_BEGIN_DECLS 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # /* Declarations for org.project.UsefulInterface */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1097s # 1097s # struct _OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1097s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1097s # 1097s # struct _OrgProjectUsefulInterfaceIface 1097s # { 1097s # GTypeInterface parent_iface; 1097s # 1097s # gboolean (*handle_useful_method) ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # }; 1097s # 1097s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1097s # 1097s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1097s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1097s # 1097s # 1097s # /* D-Bus method call completion functions: */ 1097s # void org_project_useful_interface_complete_useful_method ( 1097s # OrgProjectUsefulInterface *object, 1097s # GDBusMethodInvocation *invocation); 1097s # 1097s # 1097s # 1097s # /* D-Bus method calls: */ 1097s # void org_project_useful_interface_call_useful_method ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GDBusCallFlags call_flags, 1097s # gint timeout_msec, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_finish ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # 1097s # gboolean org_project_useful_interface_call_useful_method_sync ( 1097s # OrgProjectUsefulInterface *proxy, 1097s # GDBusCallFlags call_flags, 1097s # gint timeout_msec, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1097s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxy 1097s # { 1097s # /*< private >*/ 1097s # GDBusProxy parent_instance; 1097s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceProxyClass 1097s # { 1097s # GDBusProxyClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1097s # #endif 1097s # 1097s # void org_project_useful_interface_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # void org_project_useful_interface_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error); 1097s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error); 1097s # 1097s # 1097s # /* ---- */ 1097s # 1097s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1097s # 1097s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1097s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeleton 1097s # { 1097s # /*< private >*/ 1097s # GDBusInterfaceSkeleton parent_instance; 1097s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1097s # }; 1097s # 1097s # struct _OrgProjectUsefulInterfaceSkeletonClass 1097s # { 1097s # GDBusInterfaceSkeletonClass parent_class; 1097s # }; 1097s # 1097s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1097s # 1097s # #if GLIB_CHECK_VERSION(2, 44, 0) 1097s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1097s # #endif 1097s # 1097s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1097s # 1097s # 1097s # G_END_DECLS 1097s # 1097s # #endif /* __STDOUT__ */ 1097s # Error: 1097s ok 2 __main__.TestCodegen.test_dbus_types 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpfk15904w 1097s # /tmp/tmpfk15904w/tmp5x2rrxde.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp5x2rrxde.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1097s # /tmp/tmpfk15904w/tmp3w9b05nt.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp3w9b05nt.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1097s # /tmp/tmpfk15904w/tmp10o7svgd.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp10o7svgd.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1097s # /tmp/tmpfk15904w/tmpfzn57arj.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpfzn57arj.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1097s # /tmp/tmpfk15904w/tmp5tyo48vr.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp5tyo48vr.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1097s # /tmp/tmpfk15904w/tmp1lzs7ks5.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp1lzs7ks5.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1097s # /tmp/tmpfk15904w/tmpusmk77bp.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpusmk77bp.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1097s # /tmp/tmpfk15904w/tmp5ifi47ln.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmp5ifi47ln.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1097s # /tmp/tmpfk15904w/tmpsr_idn0c.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpsr_idn0c.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1097s # /tmp/tmpfk15904w/tmpgtc5ah0h.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpgtc5ah0h.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: D-Bus maximum signature length of 255 exceeded. 1097s # /tmp/tmpfk15904w/tmpiwdkiixb.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpiwdkiixb.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: D-Bus maximum signature length of 255 exceeded. 1097s # /tmp/tmpfk15904w/tmpy909io9w.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpy909io9w.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1097s # /tmp/tmpfk15904w/tmpj0pvbyyo.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpj0pvbyyo.xml', '--output', '-', '--body'] 1097s # Return code: 1 1097s # Output: 1097s # 1097s # Error: 1097s # ERROR: D-Bus maximum signature length of 255 exceeded. 1097s # /tmp/tmpfk15904w/tmpjzirh6zd.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpjzirh6zd.xml', '--output', '-', '--body'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifdef HAVE_CONFIG_H 1097s # # include "config.h" 1097s # #endif 1097s # 1097s # #include 1097s # #ifdef G_OS_UNIX 1097s # # include 1097s # #endif 1097s # 1097s # #ifdef G_ENABLE_DEBUG 1097s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1097s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1097s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1097s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1097s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1097s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1097s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1097s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1097s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1097s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1097s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1097s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1097s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1097s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1097s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1097s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1097s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1097s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1097s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1097s # #else /* !G_ENABLE_DEBUG */ 1097s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1097s # * Do not access GValues directly in your code. Instead, use the 1097s # * g_value_get_*() functions 1097s # */ 1097s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1097s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1097s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1097s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1097s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1097s # #endif /* !G_ENABLE_DEBUG */ 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusArgInfo parent_struct; 1097s # gboolean use_gvariant; 1097s # } _ExtendedGDBusArgInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusMethodInfo parent_struct; 1097s # const gchar *signal_name; 1097s # gboolean pass_fdlist; 1097s # } _ExtendedGDBusMethodInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusSignalInfo parent_struct; 1097s # const gchar *signal_name; 1097s # } _ExtendedGDBusSignalInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusPropertyInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # guint use_gvariant : 1; 1097s # guint emits_changed_signal : 1; 1097s # } _ExtendedGDBusPropertyInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusInterfaceInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # } _ExtendedGDBusInterfaceInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # guint prop_id; 1097s # GValue orig_value; /* the value before the change */ 1097s # } ChangedProperty; 1097s # 1097s # static void 1097s # _changed_property_free (ChangedProperty *data) 1097s # { 1097s # g_value_unset (&data->orig_value); 1097s # g_free (data); 1097s # } 1097s # 1097s # static gboolean 1097s # _g_strv_equal0 (gchar **a, gchar **b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # guint n; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # if (g_strv_length (a) != g_strv_length (b)) 1097s # goto out; 1097s # for (n = 0; a[n] != NULL; n++) 1097s # if (g_strcmp0 (a[n], b[n]) != 0) 1097s # goto out; 1097s # ret = TRUE; 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _g_variant_equal0 (GVariant *a, GVariant *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # ret = g_variant_equal (a, b); 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # G_GNUC_UNUSED static gboolean 1097s # _g_value_equal (const GValue *a, const GValue *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1097s # switch (G_VALUE_TYPE (a)) 1097s # { 1097s # case G_TYPE_BOOLEAN: 1097s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1097s # break; 1097s # case G_TYPE_UCHAR: 1097s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1097s # break; 1097s # case G_TYPE_INT: 1097s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1097s # break; 1097s # case G_TYPE_UINT: 1097s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1097s # break; 1097s # case G_TYPE_INT64: 1097s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1097s # break; 1097s # case G_TYPE_UINT64: 1097s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1097s # break; 1097s # case G_TYPE_DOUBLE: 1097s # { 1097s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1097s # gdouble da = g_value_get_double (a); 1097s # gdouble db = g_value_get_double (b); 1097s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1097s # } 1097s # break; 1097s # case G_TYPE_STRING: 1097s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1097s # break; 1097s # case G_TYPE_VARIANT: 1097s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1097s # break; 1097s # default: 1097s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1097s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1097s # else 1097s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1097s # break; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ 1097s # * Code for interface GoodTypes 1097s # * ------------------------------------------------------------------------ 1097s # */ 1097s # 1097s # /** 1097s # * SECTION:GoodTypes 1097s # * @title: GoodTypes 1097s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1097s # * 1097s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1097s # */ 1097s # 1097s # /* ---- Introspection data for GoodTypes ---- */ 1097s # 1097s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodPropertyType", 1097s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1097s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1097s # NULL 1097s # }, 1097s # "good-property-type", 1097s # FALSE, 1097s # TRUE 1097s # }; 1097s # 1097s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1097s # { 1097s # &_good_types_property_info_good_property_type.parent_struct, 1097s # NULL 1097s # }; 1097s # 1097s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodTypes", 1097s # NULL, 1097s # NULL, 1097s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1097s # NULL 1097s # }, 1097s # "good-types", 1097s # }; 1097s # 1097s # 1097s # /** 1097s # * good_types_interface_info: 1097s # * 1097s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1097s # * 1097s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1097s # */ 1097s # GDBusInterfaceInfo * 1097s # good_types_interface_info (void) 1097s # { 1097s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1097s # } 1097s # 1097s # /** 1097s # * good_types_override_properties: 1097s # * @klass: The class structure for a #GObject derived class. 1097s # * @property_id_begin: The property id to assign to the first overridden property. 1097s # * 1097s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1097s # * The properties are overridden in the order they are defined. 1097s # * 1097s # * Returns: The last property id. 1097s # */ 1097s # guint 1097s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1097s # { 1097s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1097s # return property_id_begin - 1; 1097s # } 1097s # 1097s # 1097s # 1097s # /** 1097s # * GoodTypes: 1097s # * 1097s # * Abstract interface type for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesIface: 1097s # * @parent_iface: The parent interface. 1097s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1097s # * 1097s # * Virtual table for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # typedef GoodTypesIface GoodTypesInterface; 1097s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1097s # 1097s # static void 1097s # good_types_default_init (GoodTypesIface *iface) 1097s # { 1097s # /* GObject properties for D-Bus properties: */ 1097s # /** 1097s # * GoodTypes:good-property-type: 1097s # * 1097s # * Represents the D-Bus property "GoodPropertyType". 1097s # * 1097s # * 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. 1097s # */ 1097s # g_object_interface_install_property (iface, 1097s # 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)); 1097s # } 1097s # 1097s # /** 1097s # * good_types_get_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets the value of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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. 1097s # * 1097s # * 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. 1097s # */ 1097s # GVariant * 1097s # good_types_get_good_property_type (GoodTypes *object) 1097s # { 1097s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1097s # 1097s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1097s # } 1097s # 1097s # /** 1097s # * good_types_dup_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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(). 1097s # */ 1097s # GVariant * 1097s # good_types_dup_good_property_type (GoodTypes *object) 1097s # { 1097s # GVariant *value; 1097s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1097s # return value; 1097s # } 1097s # 1097s # /** 1097s # * good_types_set_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * @value: The value to set. 1097s # * 1097s # * Sets the "GoodPropertyType" D-Bus property to @value. 1097s # * 1097s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1097s # */ 1097s # void 1097s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1097s # { 1097s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesProxy: 1097s # * 1097s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesProxyClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesProxy. 1097s # */ 1097s # 1097s # struct _GoodTypesProxyPrivate 1097s # { 1097s # GData *qdata; 1097s # }; 1097s # 1097s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_ADD_PRIVATE (GoodTypesProxy) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_proxy_finalize (GObject *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # g_datalist_clear (&proxy->priv->qdata); 1097s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1097s # if (info->use_gvariant) 1097s # { 1097s # g_value_set_variant (value, variant); 1097s # } 1097s # else 1097s # { 1097s # if (variant != NULL) 1097s # g_dbus_gvariant_to_gvalue (variant, value); 1097s # } 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1097s # GAsyncResult *res, 1097s # gpointer user_data) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info = user_data; 1097s # GError *error; 1097s # GVariant *_ret; 1097s # error = NULL; 1097s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1097s # if (!_ret) 1097s # { 1097s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1097s # info->parent_struct.name, 1097s # error->message, g_quark_to_string (error->domain), error->code); 1097s # g_error_free (error); 1097s # } 1097s # else 1097s # { 1097s # g_variant_unref (_ret); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1097s # "org.freedesktop.DBus.Properties.Set", 1097s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1097s # G_DBUS_CALL_FLAGS_NONE, 1097s # -1, 1097s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_signal (GDBusProxy *proxy, 1097s # const gchar *sender_name G_GNUC_UNUSED, 1097s # const gchar *signal_name, 1097s # GVariant *parameters) 1097s # { 1097s # _ExtendedGDBusSignalInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # gsize n; 1097s # guint signal_id; 1097s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1097s # if (info == NULL) 1097s # return; 1097s # num_params = g_variant_n_children (parameters); 1097s # paramv = g_new0 (GValue, num_params + 1); 1097s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[0], proxy); 1097s # g_variant_iter_init (&iter, parameters); 1097s # n = 1; 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_signal_emitv (paramv, signal_id, 0, NULL); 1097s # for (n = 0; n < num_params + 1; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1097s # GVariant *changed_properties, 1097s # const gchar *const *invalidated_properties) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1097s # guint n; 1097s # const gchar *key; 1097s # GVariantIter *iter; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # g_variant_get (changed_properties, "a{sv}", &iter); 1097s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1097s # g_datalist_remove_data (&proxy->priv->qdata, key); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # g_variant_iter_free (iter); 1097s # for (n = 0; invalidated_properties[n] != NULL; n++) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1097s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_proxy_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # GVariant *variant; 1097s # GVariant *value = NULL; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1097s # value = variant; 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_init (GoodTypesProxy *proxy) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1097s # #else 1097s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1097s # #endif 1097s # 1097s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusProxyClass *proxy_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_proxy_finalize; 1097s # gobject_class->get_property = good_types_proxy_get_property; 1097s # gobject_class->set_property = good_types_proxy_set_property; 1097s # 1097s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1097s # proxy_class->g_signal = good_types_proxy_g_signal; 1097s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_sync: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_sync: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesSkeleton: 1097s # * 1097s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesSkeletonClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesSkeleton. 1097s # */ 1097s # 1097s # struct _GoodTypesSkeletonPrivate 1097s # { 1097s # GValue *properties; 1097s # GList *changed_properties; 1097s # GSource *changed_properties_idle_source; 1097s # GMainContext *context; 1097s # GMutex lock; 1097s # }; 1097s # 1097s # static void 1097s # _good_types_skeleton_handle_method_call ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name, 1097s # const gchar *method_name, 1097s # GVariant *parameters, 1097s # GDBusMethodInvocation *invocation, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # _ExtendedGDBusMethodInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # guint num_extra; 1097s # gsize n; 1097s # guint signal_id; 1097s # GValue return_value = G_VALUE_INIT; 1097s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1097s # g_assert (info != NULL); 1097s # num_params = g_variant_n_children (parameters); 1097s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1097s # n = 0; 1097s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[n++], skeleton); 1097s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1097s # g_value_set_object (¶mv[n++], invocation); 1097s # if (info->pass_fdlist) 1097s # { 1097s # #ifdef G_OS_UNIX 1097s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1097s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1097s # #else 1097s # g_assert_not_reached (); 1097s # #endif 1097s # } 1097s # g_variant_iter_init (&iter, parameters); 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1097s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1097s # if (!g_value_get_boolean (&return_value)) 1097s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1097s # g_value_unset (&return_value); 1097s # for (n = 0; n < num_params + num_extra; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static GVariant * 1097s # _good_types_skeleton_handle_get_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *ret; 1097s # ret = NULL; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # g_value_init (&value, pspec->value_type); 1097s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_value_unset (&value); 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_skeleton_handle_set_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GVariant *variant, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # gboolean ret; 1097s # ret = FALSE; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # if (info->use_gvariant) 1097s # g_value_set_variant (&value, variant); 1097s # else 1097s # g_dbus_gvariant_to_gvalue (variant, &value); 1097s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # g_value_unset (&value); 1097s # ret = TRUE; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1097s # { 1097s # _good_types_skeleton_handle_method_call, 1097s # _good_types_skeleton_handle_get_property, 1097s # _good_types_skeleton_handle_set_property, 1097s # {NULL} 1097s # }; 1097s # 1097s # static GDBusInterfaceInfo * 1097s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return good_types_interface_info (); 1097s # } 1097s # 1097s # static GDBusInterfaceVTable * 1097s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # 1097s # GVariantBuilder builder; 1097s # guint n; 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #else 1097s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #endif 1097s # if (_good_types_interface_info.parent_struct.properties == NULL) 1097s # goto out; 1097s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1097s # { 1097s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1097s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1097s # { 1097s # GVariant *value; 1097s # 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); 1097s # if (value != NULL) 1097s # { 1097s # g_variant_take_ref (value); 1097s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1097s # g_variant_unref (value); 1097s # } 1097s # } 1097s # } 1097s # out: 1097s # return g_variant_builder_end (&builder); 1097s # } 1097s # 1097s # static gboolean _good_types_emit_changed (gpointer user_data); 1097s # 1097s # static void 1097s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # gboolean emit_changed = FALSE; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # { 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # emit_changed = TRUE; 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # 1097s # if (emit_changed) 1097s # _good_types_emit_changed (skeleton); 1097s # } 1097s # 1097s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_ADD_PRIVATE (GoodTypesSkeleton) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_skeleton_finalize (GObject *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # guint n; 1097s # for (n = 0; n < 1; n++) 1097s # g_value_unset (&skeleton->priv->properties[n]); 1097s # g_free (skeleton->priv->properties); 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # g_main_context_unref (skeleton->priv->context); 1097s # g_mutex_clear (&skeleton->priv->lock); 1097s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_emit_changed (gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GList *l; 1097s # GVariantBuilder builder; 1097s # GVariantBuilder invalidated_builder; 1097s # guint num_changes; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #else 1097s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #endif 1097s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *cp = l->data; 1097s # GVariant *variant; 1097s # const GValue *cur_value; 1097s # 1097s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1097s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1097s # { 1097s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1097s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1097s # g_variant_unref (variant); 1097s # num_changes++; 1097s # } 1097s # } 1097s # if (num_changes > 0) 1097s # { 1097s # GList *connections, *ll; 1097s # GVariant *signal_variant; 1097s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1097s # &builder, &invalidated_builder)); 1097s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1097s # for (ll = connections; ll != NULL; ll = ll->next) 1097s # { 1097s # GDBusConnection *connection = ll->data; 1097s # 1097s # g_dbus_connection_emit_signal (connection, 1097s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1097s # "org.freedesktop.DBus.Properties", 1097s # "PropertiesChanged", 1097s # signal_variant, 1097s # NULL); 1097s # } 1097s # g_variant_unref (signal_variant); 1097s # g_list_free_full (connections, g_object_unref); 1097s # } 1097s # else 1097s # { 1097s # g_variant_builder_clear (&builder); 1097s # g_variant_builder_clear (&invalidated_builder); 1097s # } 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # skeleton->priv->changed_properties = NULL; 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return FALSE; 1097s # } 1097s # 1097s # static void 1097s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1097s # { 1097s # ChangedProperty *cp; 1097s # GList *l; 1097s # cp = NULL; 1097s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *i_cp = l->data; 1097s # if (i_cp->info == info) 1097s # { 1097s # cp = i_cp; 1097s # break; 1097s # } 1097s # } 1097s # if (cp == NULL) 1097s # { 1097s # cp = g_new0 (ChangedProperty, 1); 1097s # cp->prop_id = prop_id; 1097s # cp->info = info; 1097s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1097s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1097s # g_value_copy (orig_value, &cp->orig_value); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_notify (GObject *object, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties != NULL && 1097s # skeleton->priv->changed_properties_idle_source == NULL) 1097s # { 1097s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1097s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1097s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1097s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1097s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1097s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_object_freeze_notify (object); 1097s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1097s # { 1097s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1097s # info->emits_changed_signal) 1097s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1097s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1097s # g_object_notify_by_pspec (object, pspec); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # g_object_thaw_notify (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1097s # #else 1097s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1097s # #endif 1097s # 1097s # g_mutex_init (&skeleton->priv->lock); 1097s # skeleton->priv->context = g_main_context_ref_thread_default (); 1097s # skeleton->priv->properties = g_new0 (GValue, 1); 1097s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # GVariant *value; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusInterfaceSkeletonClass *skeleton_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_skeleton_finalize; 1097s # gobject_class->get_property = good_types_skeleton_get_property; 1097s # gobject_class->set_property = good_types_skeleton_set_property; 1097s # gobject_class->notify = good_types_skeleton_notify; 1097s # 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1097s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1097s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1097s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1097s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_skeleton_new: 1097s # * 1097s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1097s # */ 1097s # GoodTypes * 1097s # good_types_skeleton_new (void) 1097s # { 1097s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1097s # } 1097s # Error: 1097s # 1097s # /tmp/tmpfk15904w/tmpi05a1zhu.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpi05a1zhu.xml', '--output', '-', '--body'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifdef HAVE_CONFIG_H 1097s # # include "config.h" 1097s # #endif 1097s # 1097s # #include 1097s # #ifdef G_OS_UNIX 1097s # # include 1097s # #endif 1097s # 1097s # #ifdef G_ENABLE_DEBUG 1097s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1097s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1097s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1097s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1097s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1097s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1097s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1097s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1097s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1097s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1097s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1097s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1097s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1097s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1097s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1097s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1097s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1097s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1097s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1097s # #else /* !G_ENABLE_DEBUG */ 1097s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1097s # * Do not access GValues directly in your code. Instead, use the 1097s # * g_value_get_*() functions 1097s # */ 1097s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1097s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1097s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1097s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1097s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1097s # #endif /* !G_ENABLE_DEBUG */ 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusArgInfo parent_struct; 1097s # gboolean use_gvariant; 1097s # } _ExtendedGDBusArgInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusMethodInfo parent_struct; 1097s # const gchar *signal_name; 1097s # gboolean pass_fdlist; 1097s # } _ExtendedGDBusMethodInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusSignalInfo parent_struct; 1097s # const gchar *signal_name; 1097s # } _ExtendedGDBusSignalInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusPropertyInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # guint use_gvariant : 1; 1097s # guint emits_changed_signal : 1; 1097s # } _ExtendedGDBusPropertyInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusInterfaceInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # } _ExtendedGDBusInterfaceInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # guint prop_id; 1097s # GValue orig_value; /* the value before the change */ 1097s # } ChangedProperty; 1097s # 1097s # static void 1097s # _changed_property_free (ChangedProperty *data) 1097s # { 1097s # g_value_unset (&data->orig_value); 1097s # g_free (data); 1097s # } 1097s # 1097s # static gboolean 1097s # _g_strv_equal0 (gchar **a, gchar **b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # guint n; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # if (g_strv_length (a) != g_strv_length (b)) 1097s # goto out; 1097s # for (n = 0; a[n] != NULL; n++) 1097s # if (g_strcmp0 (a[n], b[n]) != 0) 1097s # goto out; 1097s # ret = TRUE; 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _g_variant_equal0 (GVariant *a, GVariant *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # ret = g_variant_equal (a, b); 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # G_GNUC_UNUSED static gboolean 1097s # _g_value_equal (const GValue *a, const GValue *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1097s # switch (G_VALUE_TYPE (a)) 1097s # { 1097s # case G_TYPE_BOOLEAN: 1097s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1097s # break; 1097s # case G_TYPE_UCHAR: 1097s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1097s # break; 1097s # case G_TYPE_INT: 1097s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1097s # break; 1097s # case G_TYPE_UINT: 1097s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1097s # break; 1097s # case G_TYPE_INT64: 1097s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1097s # break; 1097s # case G_TYPE_UINT64: 1097s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1097s # break; 1097s # case G_TYPE_DOUBLE: 1097s # { 1097s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1097s # gdouble da = g_value_get_double (a); 1097s # gdouble db = g_value_get_double (b); 1097s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1097s # } 1097s # break; 1097s # case G_TYPE_STRING: 1097s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1097s # break; 1097s # case G_TYPE_VARIANT: 1097s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1097s # break; 1097s # default: 1097s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1097s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1097s # else 1097s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1097s # break; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ 1097s # * Code for interface GoodTypes 1097s # * ------------------------------------------------------------------------ 1097s # */ 1097s # 1097s # /** 1097s # * SECTION:GoodTypes 1097s # * @title: GoodTypes 1097s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1097s # * 1097s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1097s # */ 1097s # 1097s # /* ---- Introspection data for GoodTypes ---- */ 1097s # 1097s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodPropertyType", 1097s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1097s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1097s # NULL 1097s # }, 1097s # "good-property-type", 1097s # FALSE, 1097s # TRUE 1097s # }; 1097s # 1097s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1097s # { 1097s # &_good_types_property_info_good_property_type.parent_struct, 1097s # NULL 1097s # }; 1097s # 1097s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodTypes", 1097s # NULL, 1097s # NULL, 1097s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1097s # NULL 1097s # }, 1097s # "good-types", 1097s # }; 1097s # 1097s # 1097s # /** 1097s # * good_types_interface_info: 1097s # * 1097s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1097s # * 1097s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1097s # */ 1097s # GDBusInterfaceInfo * 1097s # good_types_interface_info (void) 1097s # { 1097s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1097s # } 1097s # 1097s # /** 1097s # * good_types_override_properties: 1097s # * @klass: The class structure for a #GObject derived class. 1097s # * @property_id_begin: The property id to assign to the first overridden property. 1097s # * 1097s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1097s # * The properties are overridden in the order they are defined. 1097s # * 1097s # * Returns: The last property id. 1097s # */ 1097s # guint 1097s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1097s # { 1097s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1097s # return property_id_begin - 1; 1097s # } 1097s # 1097s # 1097s # 1097s # /** 1097s # * GoodTypes: 1097s # * 1097s # * Abstract interface type for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesIface: 1097s # * @parent_iface: The parent interface. 1097s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1097s # * 1097s # * Virtual table for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # typedef GoodTypesIface GoodTypesInterface; 1097s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1097s # 1097s # static void 1097s # good_types_default_init (GoodTypesIface *iface) 1097s # { 1097s # /* GObject properties for D-Bus properties: */ 1097s # /** 1097s # * GoodTypes:good-property-type: 1097s # * 1097s # * Represents the D-Bus property "GoodPropertyType". 1097s # * 1097s # * 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. 1097s # */ 1097s # g_object_interface_install_property (iface, 1097s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1097s # } 1097s # 1097s # /** 1097s # * good_types_get_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets the value of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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. 1097s # * 1097s # * 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. 1097s # */ 1097s # GVariant * 1097s # good_types_get_good_property_type (GoodTypes *object) 1097s # { 1097s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1097s # 1097s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1097s # } 1097s # 1097s # /** 1097s # * good_types_dup_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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(). 1097s # */ 1097s # GVariant * 1097s # good_types_dup_good_property_type (GoodTypes *object) 1097s # { 1097s # GVariant *value; 1097s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1097s # return value; 1097s # } 1097s # 1097s # /** 1097s # * good_types_set_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * @value: The value to set. 1097s # * 1097s # * Sets the "GoodPropertyType" D-Bus property to @value. 1097s # * 1097s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1097s # */ 1097s # void 1097s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1097s # { 1097s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesProxy: 1097s # * 1097s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesProxyClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesProxy. 1097s # */ 1097s # 1097s # struct _GoodTypesProxyPrivate 1097s # { 1097s # GData *qdata; 1097s # }; 1097s # 1097s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_ADD_PRIVATE (GoodTypesProxy) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_proxy_finalize (GObject *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # g_datalist_clear (&proxy->priv->qdata); 1097s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1097s # if (info->use_gvariant) 1097s # { 1097s # g_value_set_variant (value, variant); 1097s # } 1097s # else 1097s # { 1097s # if (variant != NULL) 1097s # g_dbus_gvariant_to_gvalue (variant, value); 1097s # } 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1097s # GAsyncResult *res, 1097s # gpointer user_data) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info = user_data; 1097s # GError *error; 1097s # GVariant *_ret; 1097s # error = NULL; 1097s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1097s # if (!_ret) 1097s # { 1097s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1097s # info->parent_struct.name, 1097s # error->message, g_quark_to_string (error->domain), error->code); 1097s # g_error_free (error); 1097s # } 1097s # else 1097s # { 1097s # g_variant_unref (_ret); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1097s # "org.freedesktop.DBus.Properties.Set", 1097s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1097s # G_DBUS_CALL_FLAGS_NONE, 1097s # -1, 1097s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_signal (GDBusProxy *proxy, 1097s # const gchar *sender_name G_GNUC_UNUSED, 1097s # const gchar *signal_name, 1097s # GVariant *parameters) 1097s # { 1097s # _ExtendedGDBusSignalInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # gsize n; 1097s # guint signal_id; 1097s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1097s # if (info == NULL) 1097s # return; 1097s # num_params = g_variant_n_children (parameters); 1097s # paramv = g_new0 (GValue, num_params + 1); 1097s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[0], proxy); 1097s # g_variant_iter_init (&iter, parameters); 1097s # n = 1; 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_signal_emitv (paramv, signal_id, 0, NULL); 1097s # for (n = 0; n < num_params + 1; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1097s # GVariant *changed_properties, 1097s # const gchar *const *invalidated_properties) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1097s # guint n; 1097s # const gchar *key; 1097s # GVariantIter *iter; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # g_variant_get (changed_properties, "a{sv}", &iter); 1097s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1097s # g_datalist_remove_data (&proxy->priv->qdata, key); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # g_variant_iter_free (iter); 1097s # for (n = 0; invalidated_properties[n] != NULL; n++) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1097s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_proxy_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # GVariant *variant; 1097s # GVariant *value = NULL; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1097s # value = variant; 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_init (GoodTypesProxy *proxy) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1097s # #else 1097s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1097s # #endif 1097s # 1097s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusProxyClass *proxy_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_proxy_finalize; 1097s # gobject_class->get_property = good_types_proxy_get_property; 1097s # gobject_class->set_property = good_types_proxy_set_property; 1097s # 1097s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1097s # proxy_class->g_signal = good_types_proxy_g_signal; 1097s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_sync: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_sync: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesSkeleton: 1097s # * 1097s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesSkeletonClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesSkeleton. 1097s # */ 1097s # 1097s # struct _GoodTypesSkeletonPrivate 1097s # { 1097s # GValue *properties; 1097s # GList *changed_properties; 1097s # GSource *changed_properties_idle_source; 1097s # GMainContext *context; 1097s # GMutex lock; 1097s # }; 1097s # 1097s # static void 1097s # _good_types_skeleton_handle_method_call ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name, 1097s # const gchar *method_name, 1097s # GVariant *parameters, 1097s # GDBusMethodInvocation *invocation, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # _ExtendedGDBusMethodInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # guint num_extra; 1097s # gsize n; 1097s # guint signal_id; 1097s # GValue return_value = G_VALUE_INIT; 1097s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1097s # g_assert (info != NULL); 1097s # num_params = g_variant_n_children (parameters); 1097s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1097s # n = 0; 1097s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[n++], skeleton); 1097s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1097s # g_value_set_object (¶mv[n++], invocation); 1097s # if (info->pass_fdlist) 1097s # { 1097s # #ifdef G_OS_UNIX 1097s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1097s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1097s # #else 1097s # g_assert_not_reached (); 1097s # #endif 1097s # } 1097s # g_variant_iter_init (&iter, parameters); 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1097s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1097s # if (!g_value_get_boolean (&return_value)) 1097s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1097s # g_value_unset (&return_value); 1097s # for (n = 0; n < num_params + num_extra; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static GVariant * 1097s # _good_types_skeleton_handle_get_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *ret; 1097s # ret = NULL; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # g_value_init (&value, pspec->value_type); 1097s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_value_unset (&value); 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_skeleton_handle_set_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GVariant *variant, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # gboolean ret; 1097s # ret = FALSE; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # if (info->use_gvariant) 1097s # g_value_set_variant (&value, variant); 1097s # else 1097s # g_dbus_gvariant_to_gvalue (variant, &value); 1097s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # g_value_unset (&value); 1097s # ret = TRUE; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1097s # { 1097s # _good_types_skeleton_handle_method_call, 1097s # _good_types_skeleton_handle_get_property, 1097s # _good_types_skeleton_handle_set_property, 1097s # {NULL} 1097s # }; 1097s # 1097s # static GDBusInterfaceInfo * 1097s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return good_types_interface_info (); 1097s # } 1097s # 1097s # static GDBusInterfaceVTable * 1097s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # 1097s # GVariantBuilder builder; 1097s # guint n; 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #else 1097s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #endif 1097s # if (_good_types_interface_info.parent_struct.properties == NULL) 1097s # goto out; 1097s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1097s # { 1097s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1097s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1097s # { 1097s # GVariant *value; 1097s # 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); 1097s # if (value != NULL) 1097s # { 1097s # g_variant_take_ref (value); 1097s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1097s # g_variant_unref (value); 1097s # } 1097s # } 1097s # } 1097s # out: 1097s # return g_variant_builder_end (&builder); 1097s # } 1097s # 1097s # static gboolean _good_types_emit_changed (gpointer user_data); 1097s # 1097s # static void 1097s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # gboolean emit_changed = FALSE; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # { 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # emit_changed = TRUE; 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # 1097s # if (emit_changed) 1097s # _good_types_emit_changed (skeleton); 1097s # } 1097s # 1097s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_ADD_PRIVATE (GoodTypesSkeleton) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_skeleton_finalize (GObject *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # guint n; 1097s # for (n = 0; n < 1; n++) 1097s # g_value_unset (&skeleton->priv->properties[n]); 1097s # g_free (skeleton->priv->properties); 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # g_main_context_unref (skeleton->priv->context); 1097s # g_mutex_clear (&skeleton->priv->lock); 1097s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_emit_changed (gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GList *l; 1097s # GVariantBuilder builder; 1097s # GVariantBuilder invalidated_builder; 1097s # guint num_changes; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #else 1097s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #endif 1097s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *cp = l->data; 1097s # GVariant *variant; 1097s # const GValue *cur_value; 1097s # 1097s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1097s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1097s # { 1097s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1097s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1097s # g_variant_unref (variant); 1097s # num_changes++; 1097s # } 1097s # } 1097s # if (num_changes > 0) 1097s # { 1097s # GList *connections, *ll; 1097s # GVariant *signal_variant; 1097s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1097s # &builder, &invalidated_builder)); 1097s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1097s # for (ll = connections; ll != NULL; ll = ll->next) 1097s # { 1097s # GDBusConnection *connection = ll->data; 1097s # 1097s # g_dbus_connection_emit_signal (connection, 1097s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1097s # "org.freedesktop.DBus.Properties", 1097s # "PropertiesChanged", 1097s # signal_variant, 1097s # NULL); 1097s # } 1097s # g_variant_unref (signal_variant); 1097s # g_list_free_full (connections, g_object_unref); 1097s # } 1097s # else 1097s # { 1097s # g_variant_builder_clear (&builder); 1097s # g_variant_builder_clear (&invalidated_builder); 1097s # } 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # skeleton->priv->changed_properties = NULL; 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return FALSE; 1097s # } 1097s # 1097s # static void 1097s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1097s # { 1097s # ChangedProperty *cp; 1097s # GList *l; 1097s # cp = NULL; 1097s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *i_cp = l->data; 1097s # if (i_cp->info == info) 1097s # { 1097s # cp = i_cp; 1097s # break; 1097s # } 1097s # } 1097s # if (cp == NULL) 1097s # { 1097s # cp = g_new0 (ChangedProperty, 1); 1097s # cp->prop_id = prop_id; 1097s # cp->info = info; 1097s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1097s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1097s # g_value_copy (orig_value, &cp->orig_value); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_notify (GObject *object, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties != NULL && 1097s # skeleton->priv->changed_properties_idle_source == NULL) 1097s # { 1097s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1097s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1097s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1097s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1097s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1097s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_object_freeze_notify (object); 1097s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1097s # { 1097s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1097s # info->emits_changed_signal) 1097s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1097s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1097s # g_object_notify_by_pspec (object, pspec); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # g_object_thaw_notify (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1097s # #else 1097s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1097s # #endif 1097s # 1097s # g_mutex_init (&skeleton->priv->lock); 1097s # skeleton->priv->context = g_main_context_ref_thread_default (); 1097s # skeleton->priv->properties = g_new0 (GValue, 1); 1097s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # GVariant *value; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusInterfaceSkeletonClass *skeleton_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_skeleton_finalize; 1097s # gobject_class->get_property = good_types_skeleton_get_property; 1097s # gobject_class->set_property = good_types_skeleton_set_property; 1097s # gobject_class->notify = good_types_skeleton_notify; 1097s # 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1097s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1097s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1097s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1097s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_skeleton_new: 1097s # * 1097s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1097s # */ 1097s # GoodTypes * 1097s # good_types_skeleton_new (void) 1097s # { 1097s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1097s # } 1097s # Error: 1097s # 1097s # /tmp/tmpfk15904w/tmpgkv8mloz.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk15904w/tmpgkv8mloz.xml', '--output', '-', '--body'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifdef HAVE_CONFIG_H 1097s # # include "config.h" 1097s # #endif 1097s # 1097s # #include 1097s # #ifdef G_OS_UNIX 1097s # # include 1097s # #endif 1097s # 1097s # #ifdef G_ENABLE_DEBUG 1097s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1097s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1097s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1097s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1097s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1097s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1097s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1097s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1097s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1097s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1097s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1097s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1097s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1097s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1097s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1097s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1097s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1097s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1097s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1097s # #else /* !G_ENABLE_DEBUG */ 1097s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1097s # * Do not access GValues directly in your code. Instead, use the 1097s # * g_value_get_*() functions 1097s # */ 1097s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1097s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1097s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1097s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1097s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1097s # #endif /* !G_ENABLE_DEBUG */ 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusArgInfo parent_struct; 1097s # gboolean use_gvariant; 1097s # } _ExtendedGDBusArgInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusMethodInfo parent_struct; 1097s # const gchar *signal_name; 1097s # gboolean pass_fdlist; 1097s # } _ExtendedGDBusMethodInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusSignalInfo parent_struct; 1097s # const gchar *signal_name; 1097s # } _ExtendedGDBusSignalInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusPropertyInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # guint use_gvariant : 1; 1097s # guint emits_changed_signal : 1; 1097s # } _ExtendedGDBusPropertyInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusInterfaceInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # } _ExtendedGDBusInterfaceInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # guint prop_id; 1097s # GValue orig_value; /* the value before the change */ 1097s # } ChangedProperty; 1097s # 1097s # static void 1097s # _changed_property_free (ChangedProperty *data) 1097s # { 1097s # g_value_unset (&data->orig_value); 1097s # g_free (data); 1097s # } 1097s # 1097s # static gboolean 1097s # _g_strv_equal0 (gchar **a, gchar **b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # guint n; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # if (g_strv_length (a) != g_strv_length (b)) 1097s # goto out; 1097s # for (n = 0; a[n] != NULL; n++) 1097s # if (g_strcmp0 (a[n], b[n]) != 0) 1097s # goto out; 1097s # ret = TRUE; 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _g_variant_equal0 (GVariant *a, GVariant *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # ret = g_variant_equal (a, b); 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # G_GNUC_UNUSED static gboolean 1097s # _g_value_equal (const GValue *a, const GValue *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1097s # switch (G_VALUE_TYPE (a)) 1097s # { 1097s # case G_TYPE_BOOLEAN: 1097s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1097s # break; 1097s # case G_TYPE_UCHAR: 1097s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1097s # break; 1097s # case G_TYPE_INT: 1097s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1097s # break; 1097s # case G_TYPE_UINT: 1097s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1097s # break; 1097s # case G_TYPE_INT64: 1097s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1097s # break; 1097s # case G_TYPE_UINT64: 1097s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1097s # break; 1097s # case G_TYPE_DOUBLE: 1097s # { 1097s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1097s # gdouble da = g_value_get_double (a); 1097s # gdouble db = g_value_get_double (b); 1097s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1097s # } 1097s # break; 1097s # case G_TYPE_STRING: 1097s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1097s # break; 1097s # case G_TYPE_VARIANT: 1097s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1097s # break; 1097s # default: 1097s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1097s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1097s # else 1097s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1097s # break; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ 1097s # * Code for interface GoodTypes 1097s # * ------------------------------------------------------------------------ 1097s # */ 1097s # 1097s # /** 1097s # * SECTION:GoodTypes 1097s # * @title: GoodTypes 1097s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1097s # * 1097s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1097s # */ 1097s # 1097s # /* ---- Introspection data for GoodTypes ---- */ 1097s # 1097s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodPropertyType", 1097s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1097s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1097s # NULL 1097s # }, 1097s # "good-property-type", 1097s # FALSE, 1097s # TRUE 1097s # }; 1097s # 1097s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1097s # { 1097s # &_good_types_property_info_good_property_type.parent_struct, 1097s # NULL 1097s # }; 1097s # 1097s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1097s # { 1097s # { 1097s # -1, 1097s # (gchar *) "GoodTypes", 1097s # NULL, 1097s # NULL, 1097s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1097s # NULL 1097s # }, 1097s # "good-types", 1097s # }; 1097s # 1097s # 1097s # /** 1097s # * good_types_interface_info: 1097s # * 1097s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1097s # * 1097s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1097s # */ 1097s # GDBusInterfaceInfo * 1097s # good_types_interface_info (void) 1097s # { 1097s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1097s # } 1097s # 1097s # /** 1097s # * good_types_override_properties: 1097s # * @klass: The class structure for a #GObject derived class. 1097s # * @property_id_begin: The property id to assign to the first overridden property. 1097s # * 1097s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1097s # * The properties are overridden in the order they are defined. 1097s # * 1097s # * Returns: The last property id. 1097s # */ 1097s # guint 1097s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1097s # { 1097s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1097s # return property_id_begin - 1; 1097s # } 1097s # 1097s # 1097s # 1097s # /** 1097s # * GoodTypes: 1097s # * 1097s # * Abstract interface type for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesIface: 1097s # * @parent_iface: The parent interface. 1097s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1097s # * 1097s # * Virtual table for the D-Bus interface GoodTypes. 1097s # */ 1097s # 1097s # typedef GoodTypesIface GoodTypesInterface; 1097s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1097s # 1097s # static void 1097s # good_types_default_init (GoodTypesIface *iface) 1097s # { 1097s # /* GObject properties for D-Bus properties: */ 1097s # /** 1097s # * GoodTypes:good-property-type: 1097s # * 1097s # * Represents the D-Bus property "GoodPropertyType". 1097s # * 1097s # * 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. 1097s # */ 1097s # g_object_interface_install_property (iface, 1097s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1097s # } 1097s # 1097s # /** 1097s # * good_types_get_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets the value of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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. 1097s # * 1097s # * 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. 1097s # */ 1097s # GVariant * 1097s # good_types_get_good_property_type (GoodTypes *object) 1097s # { 1097s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1097s # 1097s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1097s # } 1097s # 1097s # /** 1097s # * good_types_dup_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * 1097s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1097s # * 1097s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1097s # * 1097s # * 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(). 1097s # */ 1097s # GVariant * 1097s # good_types_dup_good_property_type (GoodTypes *object) 1097s # { 1097s # GVariant *value; 1097s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1097s # return value; 1097s # } 1097s # 1097s # /** 1097s # * good_types_set_good_property_type: (skip) 1097s # * @object: A GoodTypes. 1097s # * @value: The value to set. 1097s # * 1097s # * Sets the "GoodPropertyType" D-Bus property to @value. 1097s # * 1097s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1097s # */ 1097s # void 1097s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1097s # { 1097s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1097s # } 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesProxy: 1097s # * 1097s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesProxyClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesProxy. 1097s # */ 1097s # 1097s # struct _GoodTypesProxyPrivate 1097s # { 1097s # GData *qdata; 1097s # }; 1097s # 1097s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_ADD_PRIVATE (GoodTypesProxy) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_proxy_finalize (GObject *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # g_datalist_clear (&proxy->priv->qdata); 1097s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1097s # if (info->use_gvariant) 1097s # { 1097s # g_value_set_variant (value, variant); 1097s # } 1097s # else 1097s # { 1097s # if (variant != NULL) 1097s # g_dbus_gvariant_to_gvalue (variant, value); 1097s # } 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1097s # GAsyncResult *res, 1097s # gpointer user_data) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info = user_data; 1097s # GError *error; 1097s # GVariant *_ret; 1097s # error = NULL; 1097s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1097s # if (!_ret) 1097s # { 1097s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1097s # info->parent_struct.name, 1097s # error->message, g_quark_to_string (error->domain), error->code); 1097s # g_error_free (error); 1097s # } 1097s # else 1097s # { 1097s # g_variant_unref (_ret); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *variant; 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1097s # "org.freedesktop.DBus.Properties.Set", 1097s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1097s # G_DBUS_CALL_FLAGS_NONE, 1097s # -1, 1097s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1097s # g_variant_unref (variant); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_signal (GDBusProxy *proxy, 1097s # const gchar *sender_name G_GNUC_UNUSED, 1097s # const gchar *signal_name, 1097s # GVariant *parameters) 1097s # { 1097s # _ExtendedGDBusSignalInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # gsize n; 1097s # guint signal_id; 1097s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1097s # if (info == NULL) 1097s # return; 1097s # num_params = g_variant_n_children (parameters); 1097s # paramv = g_new0 (GValue, num_params + 1); 1097s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[0], proxy); 1097s # g_variant_iter_init (&iter, parameters); 1097s # n = 1; 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_signal_emitv (paramv, signal_id, 0, NULL); 1097s # for (n = 0; n < num_params + 1; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1097s # GVariant *changed_properties, 1097s # const gchar *const *invalidated_properties) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1097s # guint n; 1097s # const gchar *key; 1097s # GVariantIter *iter; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # g_variant_get (changed_properties, "a{sv}", &iter); 1097s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1097s # g_datalist_remove_data (&proxy->priv->qdata, key); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # g_variant_iter_free (iter); 1097s # for (n = 0; invalidated_properties[n] != NULL; n++) 1097s # { 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1097s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1097s # if (info != NULL) 1097s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1097s # } 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_proxy_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1097s # GVariant *variant; 1097s # GVariant *value = NULL; 1097s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1097s # value = variant; 1097s # if (variant != NULL) 1097s # g_variant_unref (variant); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_init (GoodTypesProxy *proxy) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1097s # #else 1097s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1097s # #endif 1097s # 1097s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusProxyClass *proxy_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_proxy_finalize; 1097s # gobject_class->get_property = good_types_proxy_get_property; 1097s # gobject_class->set_property = good_types_proxy_set_property; 1097s # 1097s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1097s # proxy_class->g_signal = good_types_proxy_g_signal; 1097s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_proxy_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_sync: 1097s # * @connection: A #GDBusConnection. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_sync ( 1097s # GDBusConnection *connection, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1097s # * @user_data: User data to pass to @callback. 1097s # * 1097s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1097s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1097s # * 1097s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1097s # */ 1097s # void 1097s # good_types_proxy_new_for_bus ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GAsyncReadyCallback callback, 1097s # gpointer user_data) 1097s # { 1097s # 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); 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_finish: 1097s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_finish ( 1097s # GAsyncResult *res, 1097s # GError **error) 1097s # { 1097s # GObject *ret; 1097s # GObject *source_object; 1097s # source_object = g_async_result_get_source_object (res); 1097s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1097s # g_object_unref (source_object); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # /** 1097s # * good_types_proxy_new_for_bus_sync: 1097s # * @bus_type: A #GBusType. 1097s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1097s # * @name: A bus name (well-known or unique). 1097s # * @object_path: An object path. 1097s # * @cancellable: (nullable): A #GCancellable or %NULL. 1097s # * @error: Return location for error or %NULL 1097s # * 1097s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1097s # * 1097s # * The calling thread is blocked until a reply is received. 1097s # * 1097s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1097s # */ 1097s # GoodTypes * 1097s # good_types_proxy_new_for_bus_sync ( 1097s # GBusType bus_type, 1097s # GDBusProxyFlags flags, 1097s # const gchar *name, 1097s # const gchar *object_path, 1097s # GCancellable *cancellable, 1097s # GError **error) 1097s # { 1097s # GInitable *ret; 1097s # 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); 1097s # if (ret != NULL) 1097s # return GOOD_TYPES (ret); 1097s # else 1097s # return NULL; 1097s # } 1097s # 1097s # 1097s # /* ------------------------------------------------------------------------ */ 1097s # 1097s # /** 1097s # * GoodTypesSkeleton: 1097s # * 1097s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1097s # */ 1097s # 1097s # /** 1097s # * GoodTypesSkeletonClass: 1097s # * @parent_class: The parent class. 1097s # * 1097s # * Class structure for GoodTypesSkeleton. 1097s # */ 1097s # 1097s # struct _GoodTypesSkeletonPrivate 1097s # { 1097s # GValue *properties; 1097s # GList *changed_properties; 1097s # GSource *changed_properties_idle_source; 1097s # GMainContext *context; 1097s # GMutex lock; 1097s # }; 1097s # 1097s # static void 1097s # _good_types_skeleton_handle_method_call ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name, 1097s # const gchar *method_name, 1097s # GVariant *parameters, 1097s # GDBusMethodInvocation *invocation, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # _ExtendedGDBusMethodInfo *info; 1097s # GVariantIter iter; 1097s # GVariant *child; 1097s # GValue *paramv; 1097s # gsize num_params; 1097s # guint num_extra; 1097s # gsize n; 1097s # guint signal_id; 1097s # GValue return_value = G_VALUE_INIT; 1097s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1097s # g_assert (info != NULL); 1097s # num_params = g_variant_n_children (parameters); 1097s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1097s # n = 0; 1097s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1097s # g_value_set_object (¶mv[n++], skeleton); 1097s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1097s # g_value_set_object (¶mv[n++], invocation); 1097s # if (info->pass_fdlist) 1097s # { 1097s # #ifdef G_OS_UNIX 1097s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1097s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1097s # #else 1097s # g_assert_not_reached (); 1097s # #endif 1097s # } 1097s # g_variant_iter_init (&iter, parameters); 1097s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1097s # { 1097s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1097s # if (arg_info->use_gvariant) 1097s # { 1097s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1097s # g_value_set_variant (¶mv[n], child); 1097s # n++; 1097s # } 1097s # else 1097s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1097s # g_variant_unref (child); 1097s # } 1097s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1097s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1097s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1097s # if (!g_value_get_boolean (&return_value)) 1097s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1097s # g_value_unset (&return_value); 1097s # for (n = 0; n < num_params + num_extra; n++) 1097s # g_value_unset (¶mv[n]); 1097s # g_free (paramv); 1097s # } 1097s # 1097s # static GVariant * 1097s # _good_types_skeleton_handle_get_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # GVariant *ret; 1097s # ret = NULL; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # g_value_init (&value, pspec->value_type); 1097s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1097s # g_value_unset (&value); 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_skeleton_handle_set_property ( 1097s # GDBusConnection *connection G_GNUC_UNUSED, 1097s # const gchar *sender G_GNUC_UNUSED, 1097s # const gchar *object_path G_GNUC_UNUSED, 1097s # const gchar *interface_name G_GNUC_UNUSED, 1097s # const gchar *property_name, 1097s # GVariant *variant, 1097s # GError **error, 1097s # gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GValue value = G_VALUE_INIT; 1097s # GParamSpec *pspec; 1097s # _ExtendedGDBusPropertyInfo *info; 1097s # gboolean ret; 1097s # ret = FALSE; 1097s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1097s # g_assert (info != NULL); 1097s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1097s # if (pspec == NULL) 1097s # { 1097s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1097s # } 1097s # else 1097s # { 1097s # if (info->use_gvariant) 1097s # g_value_set_variant (&value, variant); 1097s # else 1097s # g_dbus_gvariant_to_gvalue (variant, &value); 1097s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1097s # g_value_unset (&value); 1097s # ret = TRUE; 1097s # } 1097s # return ret; 1097s # } 1097s # 1097s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1097s # { 1097s # _good_types_skeleton_handle_method_call, 1097s # _good_types_skeleton_handle_get_property, 1097s # _good_types_skeleton_handle_set_property, 1097s # {NULL} 1097s # }; 1097s # 1097s # static GDBusInterfaceInfo * 1097s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return good_types_interface_info (); 1097s # } 1097s # 1097s # static GDBusInterfaceVTable * 1097s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1097s # { 1097s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # 1097s # GVariantBuilder builder; 1097s # guint n; 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #else 1097s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # #endif 1097s # if (_good_types_interface_info.parent_struct.properties == NULL) 1097s # goto out; 1097s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1097s # { 1097s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1097s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1097s # { 1097s # GVariant *value; 1097s # 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); 1097s # if (value != NULL) 1097s # { 1097s # g_variant_take_ref (value); 1097s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1097s # g_variant_unref (value); 1097s # } 1097s # } 1097s # } 1097s # out: 1097s # return g_variant_builder_end (&builder); 1097s # } 1097s # 1097s # static gboolean _good_types_emit_changed (gpointer user_data); 1097s # 1097s # static void 1097s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1097s # gboolean emit_changed = FALSE; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # { 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # emit_changed = TRUE; 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # 1097s # if (emit_changed) 1097s # _good_types_emit_changed (skeleton); 1097s # } 1097s # 1097s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_ADD_PRIVATE (GoodTypesSkeleton) 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #else 1097s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1097s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1097s # 1097s # #endif 1097s # static void 1097s # good_types_skeleton_finalize (GObject *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # guint n; 1097s # for (n = 0; n < 1; n++) 1097s # g_value_unset (&skeleton->priv->properties[n]); 1097s # g_free (skeleton->priv->properties); 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # if (skeleton->priv->changed_properties_idle_source != NULL) 1097s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1097s # g_main_context_unref (skeleton->priv->context); 1097s # g_mutex_clear (&skeleton->priv->lock); 1097s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_get_property (GObject *object, 1097s # guint prop_id, 1097s # GValue *value, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static gboolean 1097s # _good_types_emit_changed (gpointer user_data) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1097s # GList *l; 1097s # GVariantBuilder builder; 1097s # GVariantBuilder invalidated_builder; 1097s # guint num_changes; 1097s # 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1097s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #else 1097s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1097s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1097s # #endif 1097s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *cp = l->data; 1097s # GVariant *variant; 1097s # const GValue *cur_value; 1097s # 1097s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1097s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1097s # { 1097s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1097s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1097s # g_variant_unref (variant); 1097s # num_changes++; 1097s # } 1097s # } 1097s # if (num_changes > 0) 1097s # { 1097s # GList *connections, *ll; 1097s # GVariant *signal_variant; 1097s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1097s # &builder, &invalidated_builder)); 1097s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1097s # for (ll = connections; ll != NULL; ll = ll->next) 1097s # { 1097s # GDBusConnection *connection = ll->data; 1097s # 1097s # g_dbus_connection_emit_signal (connection, 1097s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1097s # "org.freedesktop.DBus.Properties", 1097s # "PropertiesChanged", 1097s # signal_variant, 1097s # NULL); 1097s # } 1097s # g_variant_unref (signal_variant); 1097s # g_list_free_full (connections, g_object_unref); 1097s # } 1097s # else 1097s # { 1097s # g_variant_builder_clear (&builder); 1097s # g_variant_builder_clear (&invalidated_builder); 1097s # } 1097s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1097s # skeleton->priv->changed_properties = NULL; 1097s # skeleton->priv->changed_properties_idle_source = NULL; 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return FALSE; 1097s # } 1097s # 1097s # static void 1097s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1097s # { 1097s # ChangedProperty *cp; 1097s # GList *l; 1097s # cp = NULL; 1097s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1097s # { 1097s # ChangedProperty *i_cp = l->data; 1097s # if (i_cp->info == info) 1097s # { 1097s # cp = i_cp; 1097s # break; 1097s # } 1097s # } 1097s # if (cp == NULL) 1097s # { 1097s # cp = g_new0 (ChangedProperty, 1); 1097s # cp->prop_id = prop_id; 1097s # cp->info = info; 1097s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1097s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1097s # g_value_copy (orig_value, &cp->orig_value); 1097s # } 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_notify (GObject *object, 1097s # GParamSpec *pspec G_GNUC_UNUSED) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # if (skeleton->priv->changed_properties != NULL && 1097s # skeleton->priv->changed_properties_idle_source == NULL) 1097s # { 1097s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1097s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1097s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1097s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1097s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1097s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_set_property (GObject *object, 1097s # guint prop_id, 1097s # const GValue *value, 1097s # GParamSpec *pspec) 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1097s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # g_object_freeze_notify (object); 1097s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1097s # { 1097s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1097s # info->emits_changed_signal) 1097s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1097s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1097s # g_object_notify_by_pspec (object, pspec); 1097s # } 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # g_object_thaw_notify (object); 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1097s # { 1097s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1097s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1097s # #else 1097s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1097s # #endif 1097s # 1097s # g_mutex_init (&skeleton->priv->lock); 1097s # skeleton->priv->context = g_main_context_ref_thread_default (); 1097s # skeleton->priv->properties = g_new0 (GValue, 1); 1097s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1097s # } 1097s # 1097s # static GVariant * 1097s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1097s # { 1097s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1097s # GVariant *value; 1097s # g_mutex_lock (&skeleton->priv->lock); 1097s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1097s # g_mutex_unlock (&skeleton->priv->lock); 1097s # return value; 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1097s # { 1097s # GObjectClass *gobject_class; 1097s # GDBusInterfaceSkeletonClass *skeleton_class; 1097s # 1097s # gobject_class = G_OBJECT_CLASS (klass); 1097s # gobject_class->finalize = good_types_skeleton_finalize; 1097s # gobject_class->get_property = good_types_skeleton_get_property; 1097s # gobject_class->set_property = good_types_skeleton_set_property; 1097s # gobject_class->notify = good_types_skeleton_notify; 1097s # 1097s # 1097s # good_types_override_properties (gobject_class, 1); 1097s # 1097s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1097s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1097s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1097s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1097s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1097s # 1097s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1097s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1097s # #endif 1097s # } 1097s # 1097s # static void 1097s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1097s # { 1097s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1097s # } 1097s # 1097s # /** 1097s # * good_types_skeleton_new: 1097s # * 1097s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1097s # * 1097s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1097s # */ 1097s # GoodTypes * 1097s # good_types_skeleton_new (void) 1097s # { 1097s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1097s # } 1097s # Error: 1097s ok 3 __main__.TestCodegen.test_empty_interface_body 1097s # Executing: glib/codegen.py.test 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmp5wekhdys 1097s # /tmp/tmp5wekhdys/tmpjvqm139y.xml: 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5wekhdys/tmpjvqm139y.xml', '--output', '-', '--body'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifdef HAVE_CONFIG_H 1097s # # include "config.h" 1097s # #endif 1097s # 1097s # #include 1097s # #ifdef G_OS_UNIX 1097s # # include 1097s # #endif 1097s # 1097s # #ifdef G_ENABLE_DEBUG 1097s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1097s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1097s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1097s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1097s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1097s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1097s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1097s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1097s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1097s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1097s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1097s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1097s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1097s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1097s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1097s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1097s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1097s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1097s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1097s # #else /* !G_ENABLE_DEBUG */ 1097s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1097s # * Do not access GValues directly in your code. Instead, use the 1097s # * g_value_get_*() functions 1097s # */ 1097s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1097s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1097s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1097s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1097s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1097s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1097s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1097s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1097s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1097s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1097s # #endif /* !G_ENABLE_DEBUG */ 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusArgInfo parent_struct; 1097s # gboolean use_gvariant; 1097s # } _ExtendedGDBusArgInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusMethodInfo parent_struct; 1097s # const gchar *signal_name; 1097s # gboolean pass_fdlist; 1097s # } _ExtendedGDBusMethodInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusSignalInfo parent_struct; 1097s # const gchar *signal_name; 1097s # } _ExtendedGDBusSignalInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusPropertyInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # guint use_gvariant : 1; 1097s # guint emits_changed_signal : 1; 1097s # } _ExtendedGDBusPropertyInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # GDBusInterfaceInfo parent_struct; 1097s # const gchar *hyphen_name; 1097s # } _ExtendedGDBusInterfaceInfo; 1097s # 1097s # typedef struct 1097s # { 1097s # const _ExtendedGDBusPropertyInfo *info; 1097s # guint prop_id; 1097s # GValue orig_value; /* the value before the change */ 1097s # } ChangedProperty; 1097s # 1097s # static void 1097s # _changed_property_free (ChangedProperty *data) 1097s # { 1097s # g_value_unset (&data->orig_value); 1097s # g_free (data); 1097s # } 1097s # 1097s # static gboolean 1097s # _g_strv_equal0 (gchar **a, gchar **b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # guint n; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # if (g_strv_length (a) != g_strv_length (b)) 1097s # goto out; 1097s # for (n = 0; a[n] != NULL; n++) 1097s # if (g_strcmp0 (a[n], b[n]) != 0) 1097s # goto out; 1097s # ret = TRUE; 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # static gboolean 1097s # _g_variant_equal0 (GVariant *a, GVariant *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # if (a == NULL && b == NULL) 1097s # { 1097s # ret = TRUE; 1097s # goto out; 1097s # } 1097s # if (a == NULL || b == NULL) 1097s # goto out; 1097s # ret = g_variant_equal (a, b); 1097s # out: 1097s # return ret; 1097s # } 1097s # 1097s # G_GNUC_UNUSED static gboolean 1097s # _g_value_equal (const GValue *a, const GValue *b) 1097s # { 1097s # gboolean ret = FALSE; 1097s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1097s # switch (G_VALUE_TYPE (a)) 1097s # { 1097s # case G_TYPE_BOOLEAN: 1097s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1097s # break; 1097s # case G_TYPE_UCHAR: 1097s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1097s # break; 1097s # case G_TYPE_INT: 1097s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1097s # break; 1097s # case G_TYPE_UINT: 1097s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1097s # break; 1097s # case G_TYPE_INT64: 1097s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1097s # break; 1097s # case G_TYPE_UINT64: 1097s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1097s # break; 1097s # case G_TYPE_DOUBLE: 1097s # { 1097s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1097s # gdouble da = g_value_get_double (a); 1097s # gdouble db = g_value_get_double (b); 1097s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1097s # } 1097s # break; 1097s # case G_TYPE_STRING: 1097s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1097s # break; 1097s # case G_TYPE_VARIANT: 1097s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1097s # break; 1097s # default: 1097s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1097s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1097s # else 1097s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1097s # break; 1097s # } 1097s # return ret; 1097s # } 1097s # Error: 1097s ok 4 __main__.TestCodegen.test_empty_interface_header 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmprbayql2_ 1097s # /tmp/tmprbayql2_/tmpcd8wbb7c.xml: 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprbayql2_/tmpcd8wbb7c.xml', '--output', '-', '--header'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifndef __STDOUT__ 1097s # #define __STDOUT__ 1097s # 1097s # #include 1097s # 1097s # G_BEGIN_DECLS 1097s # 1097s # 1097s # G_END_DECLS 1097s # 1097s # #endif /* __STDOUT__ */ 1097s # Error: 1097s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpsm_pmzwx 1097s # /tmp/tmpsm_pmzwx/tmpc9d9i4l6.xml: 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsm_pmzwx/tmpc9d9i4l6.xml', '--output', '-', '--interface-info-body'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifdef HAVE_CONFIG_H 1097s # # include "config.h" 1097s # #endif 1097s # 1097s # #include 1097s # Error: 1097s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpa4fiffy7 1097s # /tmp/tmpa4fiffy7/tmp6l3z3n09.xml: 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpa4fiffy7/tmp6l3z3n09.xml', '--output', '-', '--interface-info-header'] 1097s # Return code: 0 1097s # Output: 1097s # /* 1097s # * This file is generated by gdbus-codegen, do not modify it. 1097s # * 1097s # * The license of this code is the same as for the D-Bus interface description 1097s # * it was derived from. Note that it links to GLib, so must comply with the 1097s # * LGPL linking clauses. 1097s # */ 1097s # 1097s # #ifndef __STDOUT__ 1097s # #define __STDOUT__ 1097s # 1097s # #include 1097s # 1097s # G_BEGIN_DECLS 1097s # 1097s # 1097s # G_END_DECLS 1097s # 1097s # #endif /* __STDOUT__ */ 1097s # Error: 1097s ok 7 __main__.TestCodegen.test_generate_docbook 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpvztwpat2 1097s # /tmp/tmpvztwpat2/tmpz6bu7601.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvztwpat2/tmpz6bu7601.xml', '--generate-docbook', 'test'] 1097s # Return code: 0 1097s # Output: 1097s # 1097s # Error: 1097s ok 8 __main__.TestCodegen.test_generate_md 1097s # gdbus-codegen: /usr/bin/gdbus-codegen 1097s # tmpdir: /tmp/tmpj7uy0tj2 1097s # /tmp/tmpj7uy0tj2/tmpdt3tqxzf.xml: 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # 1097s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj7uy0tj2/tmpdt3tqxzf.xml', '--generate-md', 'test'] 1097s # Return code: 0 1097s # Output: 1097s # 1097s # Error: 1098s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1098s # gdbus-codegen: /usr/bin/gdbus-codegen 1098s # tmpdir: /tmp/tmptd9avzag 1098s # /tmp/tmptd9avzag/tmphzc03ayf.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptd9avzag/tmphzc03ayf.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 2); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.CallableIface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectCallableIface 1098s # * @title: OrgProjectCallableIface 1098s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.CallableIface ---- */ 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SimpleMethod", 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-simple-method", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1098s # { 1098s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.CallableIface", 1098s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-callable-iface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_callable_iface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_callable_iface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_callable_iface_method_marshal_simple_method ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectCallableIface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectCallableIfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.CallableIface. 1098s # */ 1098s # 1098s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectCallableIface::handle-simple-method: 1098s # * @object: A #OrgProjectCallableIface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-simple-method", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_callable_iface_method_marshal_simple_method, 1098s # G_TYPE_BOOLEAN, 1098s # 1, 1098s # G_TYPE_DBUS_METHOD_INVOCATION); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_call_simple_method: 1098s # * @proxy: A #OrgProjectCallableIfaceProxy. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_callable_iface_call_simple_method ( 1098s # OrgProjectCallableIface *proxy, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SimpleMethod", 1098s # g_variant_new ("()"), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_call_simple_method_finish: 1098s # * @proxy: A #OrgProjectCallableIfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_callable_iface_call_simple_method_finish ( 1098s # OrgProjectCallableIface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_call_simple_method_sync: 1098s # * @proxy: A #OrgProjectCallableIfaceProxy. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_callable_iface_call_simple_method_sync ( 1098s # OrgProjectCallableIface *proxy, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SimpleMethod", 1098s # g_variant_new ("()"), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_complete_simple_method: 1098s # * @object: A #OrgProjectCallableIface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_callable_iface_complete_simple_method ( 1098s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectCallableIfaceProxy: 1098s # * 1098s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectCallableIfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectCallableIfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectCallableIfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_callable_iface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1098s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1098s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_callable_iface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # 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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectCallableIface * 1098s # org_project_callable_iface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectCallableIface * 1098s # org_project_callable_iface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_callable_iface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # 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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectCallableIface * 1098s # org_project_callable_iface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectCallableIface * 1098s # org_project_callable_iface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectCallableIfaceSkeleton: 1098s # * 1098s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectCallableIfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectCallableIfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_callable_iface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_callable_iface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_callable_iface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1098s # { 1098s # _org_project_callable_iface_skeleton_handle_method_call, 1098s # _org_project_callable_iface_skeleton_handle_get_property, 1098s # _org_project_callable_iface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_callable_iface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_callable_iface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_callable_iface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectCallableIface * 1098s # org_project_callable_iface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.OtherCallableIface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectOtherCallableIface 1098s # * @title: OrgProjectOtherCallableIface 1098s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SimpleMethod", 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-simple-method", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1098s # { 1098s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.OtherCallableIface", 1098s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-other-callable-iface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_other_callable_iface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_other_callable_iface_method_marshal_simple_method ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1098s # */ 1098s # 1098s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectOtherCallableIface::handle-simple-method: 1098s # * @object: A #OrgProjectOtherCallableIface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-simple-method", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_other_callable_iface_method_marshal_simple_method, 1098s # G_TYPE_BOOLEAN, 1098s # 1, 1098s # G_TYPE_DBUS_METHOD_INVOCATION); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_call_simple_method: 1098s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_other_callable_iface_call_simple_method ( 1098s # OrgProjectOtherCallableIface *proxy, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SimpleMethod", 1098s # g_variant_new ("()"), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_call_simple_method_finish: 1098s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_other_callable_iface_call_simple_method_finish ( 1098s # OrgProjectOtherCallableIface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_call_simple_method_sync: 1098s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_other_callable_iface_call_simple_method_sync ( 1098s # OrgProjectOtherCallableIface *proxy, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SimpleMethod", 1098s # g_variant_new ("()"), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_complete_simple_method: 1098s # * @object: A #OrgProjectOtherCallableIface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_other_callable_iface_complete_simple_method ( 1098s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIfaceProxy: 1098s # * 1098s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1098s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1098s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_other_callable_iface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # 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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectOtherCallableIface * 1098s # org_project_other_callable_iface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectOtherCallableIface * 1098s # org_project_other_callable_iface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_other_callable_iface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # 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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectOtherCallableIface * 1098s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectOtherCallableIface * 1098s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIfaceSkeleton: 1098s # * 1098s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectOtherCallableIfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1098s # { 1098s # _org_project_other_callable_iface_skeleton_handle_method_call, 1098s # _org_project_other_callable_iface_skeleton_handle_get_property, 1098s # _org_project_other_callable_iface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_other_callable_iface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_other_callable_iface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectOtherCallableIface * 1098s # org_project_other_callable_iface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1098s # gdbus-codegen: /usr/bin/gdbus-codegen 1098s # tmpdir: /tmp/tmp9_51hol_ 1098s # /tmp/tmp9_51hol_/tmpk7g8khfo.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpk7g8khfo.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # gboolean arg_arg_b, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_boolean (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_b", 1098s # (gchar *) "b", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodB", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-b", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_b: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-b", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_b, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_b: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_b: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_b ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gboolean arg_arg_b, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodB", 1098s # g_variant_new ("(b)", 1098s # arg_arg_b), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_b_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_b_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_b_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_b: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_b_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gboolean arg_arg_b, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodB", 1098s # g_variant_new ("(b)", 1098s # arg_arg_b), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_b: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_b ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpeg_lp8ym.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpeg_lp8ym.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # guchar arg_arg_y, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_uchar (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_y", 1098s # (gchar *) "y", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodY", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-y", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_y: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-y", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_y, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_y: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_y: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_y ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guchar arg_arg_y, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodY", 1098s # g_variant_new ("(y)", 1098s # arg_arg_y), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_y_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_y_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_y_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_y: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_y_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guchar arg_arg_y, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodY", 1098s # g_variant_new ("(y)", 1098s # arg_arg_y), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_y: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_y ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmp7h7undxn.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmp7h7undxn.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # gint16 arg_arg_n, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_int (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_n", 1098s # (gchar *) "n", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodN", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-n", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_n: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-n", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_n, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_n: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_n: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_n ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint16 arg_arg_n, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodN", 1098s # g_variant_new ("(n)", 1098s # arg_arg_n), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_n_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_n_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_n_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_n: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_n_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint16 arg_arg_n, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodN", 1098s # g_variant_new ("(n)", 1098s # arg_arg_n), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_n: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_n ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpvmp6n7_f.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpvmp6n7_f.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # guint16 arg_arg_q, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_uint (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_q", 1098s # (gchar *) "q", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodQ", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-q", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_q: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-q", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_q, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_q: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_q: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_q ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint16 arg_arg_q, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodQ", 1098s # g_variant_new ("(q)", 1098s # arg_arg_q), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_q_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_q_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_q_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_q: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_q_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint16 arg_arg_q, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodQ", 1098s # g_variant_new ("(q)", 1098s # arg_arg_q), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_q: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_q ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmp4m4yej00.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmp4m4yej00.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # gint arg_arg_i, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_int (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_i", 1098s # (gchar *) "i", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodI", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-i", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_i: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-i", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_i, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_i: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_i: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_i ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint arg_arg_i, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodI", 1098s # g_variant_new ("(i)", 1098s # arg_arg_i), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_i_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_i_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_i_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_i: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_i_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint arg_arg_i, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodI", 1098s # g_variant_new ("(i)", 1098s # arg_arg_i), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_i: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_i ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmppnuwzz63.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmppnuwzz63.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # guint arg_arg_u, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_uint (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_u", 1098s # (gchar *) "u", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodU", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-u", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_u: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-u", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_u, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_u: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_u: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_u ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint arg_arg_u, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodU", 1098s # g_variant_new ("(u)", 1098s # arg_arg_u), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_u_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_u_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_u_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_u: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_u_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint arg_arg_u, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodU", 1098s # g_variant_new ("(u)", 1098s # arg_arg_u), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_u: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_u ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpg_zsmwyj.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpg_zsmwyj.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # gint64 arg_arg_x, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_int64 (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_x", 1098s # (gchar *) "x", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodX", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-x", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_x: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-x", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_x, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_x: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_x: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_x ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint64 arg_arg_x, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodX", 1098s # g_variant_new ("(x)", 1098s # arg_arg_x), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_x_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_x_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_x_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_x: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_x_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gint64 arg_arg_x, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodX", 1098s # g_variant_new ("(x)", 1098s # arg_arg_x), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_x: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_x ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpn4anyb71.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpn4anyb71.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # guint64 arg_arg_t, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_uint64 (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_t", 1098s # (gchar *) "t", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodT", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-t", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_t: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-t", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_t, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_t: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_t: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_t ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint64 arg_arg_t, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodT", 1098s # g_variant_new ("(t)", 1098s # arg_arg_t), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_t_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_t_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_t_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_t: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_t_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # guint64 arg_arg_t, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodT", 1098s # g_variant_new ("(t)", 1098s # arg_arg_t), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_t: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_t ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpm8dhcuap.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpm8dhcuap.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # gdouble arg_arg_d, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_double (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_d", 1098s # (gchar *) "d", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodD", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-d", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_d: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-d", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_d, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_d: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_d: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_d ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gdouble arg_arg_d, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodD", 1098s # g_variant_new ("(d)", 1098s # arg_arg_d), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_d_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_d_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_d_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_d: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_d_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # gdouble arg_arg_d, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodD", 1098s # g_variant_new ("(d)", 1098s # arg_arg_d), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_d: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_d ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpx7gk6h2r.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpx7gk6h2r.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *arg_arg_s, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_string (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_s", 1098s # (gchar *) "s", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodS", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-s", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_s: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-s", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_s, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_s: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_s: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_s ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_s, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodS", 1098s # g_variant_new ("(s)", 1098s # arg_arg_s), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_s_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_s_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_s_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_s: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_s_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_s, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodS", 1098s # g_variant_new ("(s)", 1098s # arg_arg_s), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_s: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_s ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpejvsdecw.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpejvsdecw.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *arg_arg_o, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_string (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_o", 1098s # (gchar *) "o", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodO", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-o", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_o: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-o", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_o, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_o: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_o: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_o ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_o, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodO", 1098s # g_variant_new ("(o)", 1098s # arg_arg_o), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_o_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_o_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_o_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_o: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_o_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_o, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodO", 1098s # g_variant_new ("(o)", 1098s # arg_arg_o), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_o: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_o ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpowv34e5o.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpowv34e5o.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *arg_arg_g, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_string (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_g", 1098s # (gchar *) "g", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodG", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-g", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_g: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-g", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_g, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_g: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_g: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_g ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_g, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodG", 1098s # g_variant_new ("(g)", 1098s # arg_arg_g), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_g_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_g_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_g_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_g: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_g_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_g, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodG", 1098s # g_variant_new ("(g)", 1098s # arg_arg_g), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_g: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_g ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpeamn3azn.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpeamn3azn.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # GVariant *arg_arg_h, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_variant (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_h", 1098s # (gchar *) "h", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodH", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-h", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_h: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-h", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_h, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_h: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_h: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_h ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GVariant *arg_arg_h, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodH", 1098s # g_variant_new ("(@h)", 1098s # arg_arg_h), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_h_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_h_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_h_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_h: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_h_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GVariant *arg_arg_h, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodH", 1098s # g_variant_new ("(@h)", 1098s # arg_arg_h), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_h: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_h ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmp697gp1pk.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmp697gp1pk.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *arg_arg_ay, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_string (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_ay", 1098s # (gchar *) "ay", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodAy", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-ay", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_ay: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-ay", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ay: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_ay: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_ay ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_ay, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAy", 1098s # g_variant_new ("(^ay)", 1098s # arg_arg_ay), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_ay: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *arg_arg_ay, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAy", 1098s # g_variant_new ("(^ay)", 1098s # arg_arg_ay), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_ay: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_ay ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpl3y03cl4.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpl3y03cl4.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *const *arg_arg_as, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_boxed (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_as", 1098s # (gchar *) "as", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodAs", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-as", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_as: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-as", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_as, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_as: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_as: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_as ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_as, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAs", 1098s # g_variant_new ("(^as)", 1098s # arg_arg_as), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_as_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_as_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_as_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_as: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_as_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_as, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAs", 1098s # g_variant_new ("(^as)", 1098s # arg_arg_as), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_as: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_as ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmphduqdvua.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmphduqdvua.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *const *arg_arg_ao, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_boxed (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_ao", 1098s # (gchar *) "ao", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodAo", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-ao", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_ao: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-ao", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ao: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_ao: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_ao ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_ao, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAo", 1098s # g_variant_new ("(^ao)", 1098s # arg_arg_ao), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_ao: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_ao, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAo", 1098s # g_variant_new ("(^ao)", 1098s # arg_arg_ao), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_ao: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_ao ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpz75mqpvy.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpz75mqpvy.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # const gchar *const *arg_arg_aay, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_boxed (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_aay", 1098s # (gchar *) "aay", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodAay", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-aay", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_aay: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-aay", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_aay: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_aay: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_aay ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_aay, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAay", 1098s # g_variant_new ("(^aay)", 1098s # arg_arg_aay), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_aay: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # const gchar *const *arg_arg_aay, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAay", 1098s # g_variant_new ("(^aay)", 1098s # arg_arg_aay), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_aay: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_aay ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1098s # 1098s # /tmp/tmp9_51hol_/tmpopbe61jb.xml: 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # 1098s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_51hol_/tmpopbe61jb.xml', '--output', '-', '--body'] 1098s # Return code: 0 1098s # Output: 1098s # /* 1098s # * This file is generated by gdbus-codegen, do not modify it. 1098s # * 1098s # * The license of this code is the same as for the D-Bus interface description 1098s # * it was derived from. Note that it links to GLib, so must comply with the 1098s # * LGPL linking clauses. 1098s # */ 1098s # 1098s # #ifdef HAVE_CONFIG_H 1098s # # include "config.h" 1098s # #endif 1098s # 1098s # #include 1098s # #ifdef G_OS_UNIX 1098s # # include 1098s # #endif 1098s # 1098s # #ifdef G_ENABLE_DEBUG 1098s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1098s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1098s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1098s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1098s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1098s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1098s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1098s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1098s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1098s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1098s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1098s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1098s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1098s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1098s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1098s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1098s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1098s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1098s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1098s # #else /* !G_ENABLE_DEBUG */ 1098s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1098s # * Do not access GValues directly in your code. Instead, use the 1098s # * g_value_get_*() functions 1098s # */ 1098s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1098s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1098s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1098s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1098s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1098s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1098s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1098s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1098s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1098s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1098s # #endif /* !G_ENABLE_DEBUG */ 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusArgInfo parent_struct; 1098s # gboolean use_gvariant; 1098s # } _ExtendedGDBusArgInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusMethodInfo parent_struct; 1098s # const gchar *signal_name; 1098s # gboolean pass_fdlist; 1098s # } _ExtendedGDBusMethodInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusSignalInfo parent_struct; 1098s # const gchar *signal_name; 1098s # } _ExtendedGDBusSignalInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusPropertyInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # guint use_gvariant : 1; 1098s # guint emits_changed_signal : 1; 1098s # } _ExtendedGDBusPropertyInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # GDBusInterfaceInfo parent_struct; 1098s # const gchar *hyphen_name; 1098s # } _ExtendedGDBusInterfaceInfo; 1098s # 1098s # typedef struct 1098s # { 1098s # const _ExtendedGDBusPropertyInfo *info; 1098s # guint prop_id; 1098s # GValue orig_value; /* the value before the change */ 1098s # } ChangedProperty; 1098s # 1098s # static void 1098s # _changed_property_free (ChangedProperty *data) 1098s # { 1098s # g_value_unset (&data->orig_value); 1098s # g_free (data); 1098s # } 1098s # 1098s # static gboolean 1098s # _g_strv_equal0 (gchar **a, gchar **b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # guint n; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # if (g_strv_length (a) != g_strv_length (b)) 1098s # goto out; 1098s # for (n = 0; a[n] != NULL; n++) 1098s # if (g_strcmp0 (a[n], b[n]) != 0) 1098s # goto out; 1098s # ret = TRUE; 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _g_variant_equal0 (GVariant *a, GVariant *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # if (a == NULL && b == NULL) 1098s # { 1098s # ret = TRUE; 1098s # goto out; 1098s # } 1098s # if (a == NULL || b == NULL) 1098s # goto out; 1098s # ret = g_variant_equal (a, b); 1098s # out: 1098s # return ret; 1098s # } 1098s # 1098s # G_GNUC_UNUSED static gboolean 1098s # _g_value_equal (const GValue *a, const GValue *b) 1098s # { 1098s # gboolean ret = FALSE; 1098s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1098s # switch (G_VALUE_TYPE (a)) 1098s # { 1098s # case G_TYPE_BOOLEAN: 1098s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1098s # break; 1098s # case G_TYPE_UCHAR: 1098s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1098s # break; 1098s # case G_TYPE_INT: 1098s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1098s # break; 1098s # case G_TYPE_UINT: 1098s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1098s # break; 1098s # case G_TYPE_INT64: 1098s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1098s # break; 1098s # case G_TYPE_UINT64: 1098s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1098s # break; 1098s # case G_TYPE_DOUBLE: 1098s # { 1098s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1098s # gdouble da = g_value_get_double (a); 1098s # gdouble db = g_value_get_double (b); 1098s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1098s # } 1098s # break; 1098s # case G_TYPE_STRING: 1098s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1098s # break; 1098s # case G_TYPE_VARIANT: 1098s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1098s # break; 1098s # default: 1098s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1098s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1098s # else 1098s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1098s # break; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static void 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint G_GNUC_UNUSED, 1098s # void *marshal_data) 1098s # { 1098s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1098s # (void *data1, 1098s # GDBusMethodInvocation *arg_method_invocation, 1098s # GVariant *arg_arg_asv, 1098s # void *data2); 1098s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1098s # GCClosure *cc = (GCClosure*) closure; 1098s # void *data1, *data2; 1098s # gboolean v_return; 1098s # 1098s # g_return_if_fail (return_value != NULL); 1098s # g_return_if_fail (n_param_values == 3); 1098s # 1098s # if (G_CCLOSURE_SWAP_DATA (closure)) 1098s # { 1098s # data1 = closure->data; 1098s # data2 = g_value_peek_pointer (param_values + 0); 1098s # } 1098s # else 1098s # { 1098s # data1 = g_value_peek_pointer (param_values + 0); 1098s # data2 = closure->data; 1098s # } 1098s # 1098s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1098s # (marshal_data ? marshal_data : cc->callback); 1098s # 1098s # v_return = 1098s # callback (data1, 1098s # g_marshal_value_peek_object (param_values + 1), 1098s # g_marshal_value_peek_variant (param_values + 2), 1098s # data2); 1098s # 1098s # g_value_set_boolean (return_value, v_return); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ 1098s # * Code for interface org.project.UsefulInterface 1098s # * ------------------------------------------------------------------------ 1098s # */ 1098s # 1098s # /** 1098s # * SECTION:OrgProjectUsefulInterface 1098s # * @title: OrgProjectUsefulInterface 1098s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1098s # * 1098s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1098s # */ 1098s # 1098s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1098s # 1098s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "arg_asv", 1098s # (gchar *) "a{sv}", 1098s # NULL 1098s # }, 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "SingleArgMethodAsv", 1098s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "handle-single-arg-method-asv", 1098s # FALSE 1098s # }; 1098s # 1098s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1098s # { 1098s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1098s # NULL 1098s # }; 1098s # 1098s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1098s # { 1098s # { 1098s # -1, 1098s # (gchar *) "org.project.UsefulInterface", 1098s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1098s # NULL, 1098s # NULL, 1098s # NULL 1098s # }, 1098s # "org-project-useful-interface", 1098s # }; 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_interface_info: 1098s # * 1098s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1098s # * 1098s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1098s # */ 1098s # GDBusInterfaceInfo * 1098s # org_project_useful_interface_interface_info (void) 1098s # { 1098s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_override_properties: 1098s # * @klass: The class structure for a #GObject derived class. 1098s # * @property_id_begin: The property id to assign to the first overridden property. 1098s # * 1098s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1098s # * The properties are overridden in the order they are defined. 1098s # * 1098s # * Returns: The last property id. 1098s # */ 1098s # guint 1098s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1098s # { 1098s # return property_id_begin - 1; 1098s # } 1098s # 1098s # 1098s # inline static void 1098s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1098s # GClosure *closure, 1098s # GValue *return_value, 1098s # unsigned int n_param_values, 1098s # const GValue *param_values, 1098s # void *invocation_hint, 1098s # void *marshal_data) 1098s # { 1098s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1098s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1098s # } 1098s # 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterface: 1098s # * 1098s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceIface: 1098s # * @parent_iface: The parent interface. 1098s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1098s # * 1098s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1098s # */ 1098s # 1098s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1098s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1098s # 1098s # static void 1098s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1098s # { 1098s # /* GObject signals for incoming D-Bus method calls: */ 1098s # /** 1098s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: A #GDBusMethodInvocation. 1098s # * @arg_arg_asv: Argument passed by remote caller. 1098s # * 1098s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1098s # * 1098s # * 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. 1098s # * 1098s # * 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. 1098s # */ 1098s # g_signal_new ("handle-single-arg-method-asv", 1098s # G_TYPE_FROM_INTERFACE (iface), 1098s # G_SIGNAL_RUN_LAST, 1098s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1098s # g_signal_accumulator_true_handled, 1098s # NULL, 1098s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1098s # G_TYPE_BOOLEAN, 1098s # 2, 1098s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1098s # 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_asv: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_asv: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1098s # */ 1098s # void 1098s # org_project_useful_interface_call_single_arg_method_asv ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GVariant *arg_arg_asv, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAsv", 1098s # g_variant_new ("(@a{sv})", 1098s # arg_arg_asv), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # callback, 1098s # user_data); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1098s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1098s # * @arg_arg_asv: Argument to pass with the method invocation. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL. 1098s # * 1098s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1098s # * 1098s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1098s # */ 1098s # gboolean 1098s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1098s # OrgProjectUsefulInterface *proxy, 1098s # GVariant *arg_arg_asv, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GVariant *_ret; 1098s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1098s # "SingleArgMethodAsv", 1098s # g_variant_new ("(@a{sv})", 1098s # arg_arg_asv), 1098s # G_DBUS_CALL_FLAGS_NONE, 1098s # -1, 1098s # cancellable, 1098s # error); 1098s # if (_ret == NULL) 1098s # goto _out; 1098s # g_variant_get (_ret, 1098s # "()"); 1098s # g_variant_unref (_ret); 1098s # _out: 1098s # return _ret != NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_complete_single_arg_method_asv: 1098s # * @object: A #OrgProjectUsefulInterface. 1098s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1098s # * 1098s # * 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. 1098s # * 1098s # * This method will free @invocation, you cannot use it afterwards. 1098s # */ 1098s # void 1098s # org_project_useful_interface_complete_single_arg_method_asv ( 1098s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1098s # GDBusMethodInvocation *invocation) 1098s # { 1098s # g_dbus_method_invocation_return_value (invocation, 1098s # g_variant_new ("()")); 1098s # } 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxy: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceProxyClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceProxyPrivate 1098s # { 1098s # GData *qdata; 1098s # }; 1098s # 1098s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_proxy_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1098s # g_datalist_clear (&proxy->priv->qdata); 1098s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1098s # guint prop_id G_GNUC_UNUSED, 1098s # const GValue *value G_GNUC_UNUSED, 1098s # GParamSpec *pspec G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1098s # const gchar *sender_name G_GNUC_UNUSED, 1098s # const gchar *signal_name, 1098s # GVariant *parameters) 1098s # { 1098s # _ExtendedGDBusSignalInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # gsize n; 1098s # guint signal_id; 1098s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1098s # if (info == NULL) 1098s # return; 1098s # num_params = g_variant_n_children (parameters); 1098s # paramv = g_new0 (GValue, num_params + 1); 1098s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[0], proxy); 1098s # g_variant_iter_init (&iter, parameters); 1098s # n = 1; 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_signal_emitv (paramv, signal_id, 0, NULL); 1098s # for (n = 0; n < num_params + 1; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1098s # GVariant *changed_properties, 1098s # const gchar *const *invalidated_properties) 1098s # { 1098s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1098s # guint n; 1098s # const gchar *key; 1098s # GVariantIter *iter; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # g_variant_get (changed_properties, "a{sv}", &iter); 1098s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1098s # g_datalist_remove_data (&proxy->priv->qdata, key); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # g_variant_iter_free (iter); 1098s # for (n = 0; invalidated_properties[n] != NULL; n++) 1098s # { 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1098s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1098s # if (info != NULL) 1098s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1098s # } 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1098s # #else 1098s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1098s # #endif 1098s # 1098s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusProxyClass *proxy_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1098s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1098s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1098s # 1098s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1098s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1098s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_sync: 1098s # * @connection: A #GDBusConnection. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_sync ( 1098s # GDBusConnection *connection, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1098s # * @user_data: User data to pass to @callback. 1098s # * 1098s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1098s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1098s # */ 1098s # void 1098s # org_project_useful_interface_proxy_new_for_bus ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GAsyncReadyCallback callback, 1098s # gpointer user_data) 1098s # { 1098s # g_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); 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_finish: 1098s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_finish ( 1098s # GAsyncResult *res, 1098s # GError **error) 1098s # { 1098s # GObject *ret; 1098s # GObject *source_object; 1098s # source_object = g_async_result_get_source_object (res); 1098s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1098s # g_object_unref (source_object); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_proxy_new_for_bus_sync: 1098s # * @bus_type: A #GBusType. 1098s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1098s # * @name: A bus name (well-known or unique). 1098s # * @object_path: An object path. 1098s # * @cancellable: (nullable): A #GCancellable or %NULL. 1098s # * @error: Return location for error or %NULL 1098s # * 1098s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1098s # * 1098s # * The calling thread is blocked until a reply is received. 1098s # * 1098s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_proxy_new_for_bus_sync ( 1098s # GBusType bus_type, 1098s # GDBusProxyFlags flags, 1098s # const gchar *name, 1098s # const gchar *object_path, 1098s # GCancellable *cancellable, 1098s # GError **error) 1098s # { 1098s # GInitable *ret; 1098s # 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); 1098s # if (ret != NULL) 1098s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1098s # else 1098s # return NULL; 1098s # } 1098s # 1098s # 1098s # /* ------------------------------------------------------------------------ */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeleton: 1098s # * 1098s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1098s # */ 1098s # 1098s # /** 1098s # * OrgProjectUsefulInterfaceSkeletonClass: 1098s # * @parent_class: The parent class. 1098s # * 1098s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1098s # */ 1098s # 1098s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1098s # { 1098s # GValue *properties; 1098s # GList *changed_properties; 1098s # GSource *changed_properties_idle_source; 1098s # GMainContext *context; 1098s # GMutex lock; 1098s # }; 1098s # 1098s # static void 1098s # _org_project_useful_interface_skeleton_handle_method_call ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name, 1098s # const gchar *method_name, 1098s # GVariant *parameters, 1098s # GDBusMethodInvocation *invocation, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # _ExtendedGDBusMethodInfo *info; 1098s # GVariantIter iter; 1098s # GVariant *child; 1098s # GValue *paramv; 1098s # gsize num_params; 1098s # guint num_extra; 1098s # gsize n; 1098s # guint signal_id; 1098s # GValue return_value = G_VALUE_INIT; 1098s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1098s # g_assert (info != NULL); 1098s # num_params = g_variant_n_children (parameters); 1098s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1098s # n = 0; 1098s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_set_object (¶mv[n++], skeleton); 1098s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1098s # g_value_set_object (¶mv[n++], invocation); 1098s # if (info->pass_fdlist) 1098s # { 1098s # #ifdef G_OS_UNIX 1098s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1098s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1098s # #else 1098s # g_assert_not_reached (); 1098s # #endif 1098s # } 1098s # g_variant_iter_init (&iter, parameters); 1098s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1098s # { 1098s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1098s # if (arg_info->use_gvariant) 1098s # { 1098s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1098s # g_value_set_variant (¶mv[n], child); 1098s # n++; 1098s # } 1098s # else 1098s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1098s # g_variant_unref (child); 1098s # } 1098s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1098s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1098s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1098s # if (!g_value_get_boolean (&return_value)) 1098s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1098s # g_value_unset (&return_value); 1098s # for (n = 0; n < num_params + num_extra; n++) 1098s # g_value_unset (¶mv[n]); 1098s # g_free (paramv); 1098s # } 1098s # 1098s # static GVariant * 1098s # _org_project_useful_interface_skeleton_handle_get_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # GVariant *ret; 1098s # ret = NULL; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # g_value_init (&value, pspec->value_type); 1098s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1098s # g_value_unset (&value); 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static gboolean 1098s # _org_project_useful_interface_skeleton_handle_set_property ( 1098s # GDBusConnection *connection G_GNUC_UNUSED, 1098s # const gchar *sender G_GNUC_UNUSED, 1098s # const gchar *object_path G_GNUC_UNUSED, 1098s # const gchar *interface_name G_GNUC_UNUSED, 1098s # const gchar *property_name, 1098s # GVariant *variant, 1098s # GError **error, 1098s # gpointer user_data) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1098s # GValue value = G_VALUE_INIT; 1098s # GParamSpec *pspec; 1098s # _ExtendedGDBusPropertyInfo *info; 1098s # gboolean ret; 1098s # ret = FALSE; 1098s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1098s # g_assert (info != NULL); 1098s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1098s # if (pspec == NULL) 1098s # { 1098s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1098s # } 1098s # else 1098s # { 1098s # if (info->use_gvariant) 1098s # g_value_set_variant (&value, variant); 1098s # else 1098s # g_dbus_gvariant_to_gvalue (variant, &value); 1098s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1098s # g_value_unset (&value); 1098s # ret = TRUE; 1098s # } 1098s # return ret; 1098s # } 1098s # 1098s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1098s # { 1098s # _org_project_useful_interface_skeleton_handle_method_call, 1098s # _org_project_useful_interface_skeleton_handle_get_property, 1098s # _org_project_useful_interface_skeleton_handle_set_property, 1098s # {NULL} 1098s # }; 1098s # 1098s # static GDBusInterfaceInfo * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return org_project_useful_interface_interface_info (); 1098s # } 1098s # 1098s # static GDBusInterfaceVTable * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1098s # { 1098s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1098s # } 1098s # 1098s # static GVariant * 1098s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1098s # 1098s # GVariantBuilder builder; 1098s # guint n; 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1098s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #else 1098s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1098s # #endif 1098s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1098s # goto out; 1098s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1098s # { 1098s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1098s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1098s # { 1098s # GVariant *value; 1098s # 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); 1098s # if (value != NULL) 1098s # { 1098s # g_variant_take_ref (value); 1098s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1098s # g_variant_unref (value); 1098s # } 1098s # } 1098s # } 1098s # out: 1098s # return g_variant_builder_end (&builder); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #else 1098s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1098s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1098s # 1098s # #endif 1098s # static void 1098s # org_project_useful_interface_skeleton_finalize (GObject *object) 1098s # { 1098s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1098s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1098s # if (skeleton->priv->changed_properties_idle_source != NULL) 1098s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1098s # g_main_context_unref (skeleton->priv->context); 1098s # g_mutex_clear (&skeleton->priv->lock); 1098s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1098s # { 1098s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1098s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1098s # #else 1098s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1098s # #endif 1098s # 1098s # g_mutex_init (&skeleton->priv->lock); 1098s # skeleton->priv->context = g_main_context_ref_thread_default (); 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1098s # { 1098s # GObjectClass *gobject_class; 1098s # GDBusInterfaceSkeletonClass *skeleton_class; 1098s # 1098s # gobject_class = G_OBJECT_CLASS (klass); 1098s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1098s # 1098s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1098s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1098s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1098s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1098s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1098s # 1098s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1098s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1098s # #endif 1098s # } 1098s # 1098s # static void 1098s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1098s # { 1098s # } 1098s # 1098s # /** 1098s # * org_project_useful_interface_skeleton_new: 1098s # * 1098s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1098s # * 1098s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1098s # */ 1098s # OrgProjectUsefulInterface * 1098s # org_project_useful_interface_skeleton_new (void) 1098s # { 1098s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1098s # } 1098s # Error: 1099s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmpswg0m_yj 1099s # /tmp/tmpswg0m_yj/tmpia9no8_8.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpia9no8_8.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_b", 1099s # (gchar *) "b", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodB", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-b", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-b", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_b, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_b: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_b ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodB", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_b_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_b_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gboolean *out_arg_b, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(b)", 1099s # out_arg_b); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_b_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_b_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gboolean *out_arg_b, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodB", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(b)", 1099s # out_arg_b); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_b: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_b: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_b ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gboolean arg_b) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(b)", 1099s # arg_b)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp_tw62k5u.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp_tw62k5u.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_y", 1099s # (gchar *) "y", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodY", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-y", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-y", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_y, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_y: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_y ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodY", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_y_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_y_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guchar *out_arg_y, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(y)", 1099s # out_arg_y); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_y_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_y_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guchar *out_arg_y, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodY", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(y)", 1099s # out_arg_y); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_y: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_y: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_y ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # guchar arg_y) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(y)", 1099s # arg_y)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp8rufd1oc.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp8rufd1oc.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_n", 1099s # (gchar *) "n", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodN", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-n", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-n", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_n, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_n: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_n ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodN", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_n_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_n_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint16 *out_arg_n, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(n)", 1099s # out_arg_n); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_n_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_n_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint16 *out_arg_n, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodN", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(n)", 1099s # out_arg_n); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_n: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_n: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_n ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gint16 arg_n) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(n)", 1099s # arg_n)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp4nz4riob.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp4nz4riob.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_q", 1099s # (gchar *) "q", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodQ", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-q", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-q", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_q, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_q: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_q ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodQ", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_q_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_q_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint16 *out_arg_q, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(q)", 1099s # out_arg_q); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_q_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_q_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint16 *out_arg_q, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodQ", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(q)", 1099s # out_arg_q); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_q: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_q: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_q ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # guint16 arg_q) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(q)", 1099s # arg_q)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp26tqmdtt.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp26tqmdtt.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_i", 1099s # (gchar *) "i", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodI", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-i", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-i", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_i, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_i: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_i ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodI", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_i_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_i_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint *out_arg_i, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(i)", 1099s # out_arg_i); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_i_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_i_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint *out_arg_i, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodI", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(i)", 1099s # out_arg_i); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_i: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_i: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_i ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gint arg_i) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(i)", 1099s # arg_i)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmph9yv2hlw.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmph9yv2hlw.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_u", 1099s # (gchar *) "u", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodU", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-u", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-u", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_u, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_u: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_u ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodU", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_u_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_u_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint *out_arg_u, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(u)", 1099s # out_arg_u); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_u_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_u_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint *out_arg_u, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodU", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(u)", 1099s # out_arg_u); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_u: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_u: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_u ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # guint arg_u) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(u)", 1099s # arg_u)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp9p6u178i.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp9p6u178i.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_x", 1099s # (gchar *) "x", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodX", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-x", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-x", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_x, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_x: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_x ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodX", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_x_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_x_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint64 *out_arg_x, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(x)", 1099s # out_arg_x); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_x_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_x_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gint64 *out_arg_x, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodX", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(x)", 1099s # out_arg_x); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_x: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_x: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_x ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gint64 arg_x) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(x)", 1099s # arg_x)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpcw9x6i3i.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpcw9x6i3i.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_t", 1099s # (gchar *) "t", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodT", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-t", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-t", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_t, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_t: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_t ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodT", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_t_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_t_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint64 *out_arg_t, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(t)", 1099s # out_arg_t); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_t_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_t_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # guint64 *out_arg_t, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodT", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(t)", 1099s # out_arg_t); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_t: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_t: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_t ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # guint64 arg_t) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(t)", 1099s # arg_t)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpje3wm70d.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpje3wm70d.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_d", 1099s # (gchar *) "d", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodD", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-d", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-d", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_d, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_d: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_d ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodD", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_d_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_d_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gdouble *out_arg_d, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(d)", 1099s # out_arg_d); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_d_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_d_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gdouble *out_arg_d, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodD", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(d)", 1099s # out_arg_d); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_d: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_d: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_d ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gdouble arg_d) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(d)", 1099s # arg_d)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp48eeqpf_.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp48eeqpf_.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_s", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodS", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-s", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-s", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_s, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_s: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_s ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodS", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_s_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_s_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_s, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(s)", 1099s # out_arg_s); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_s_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_s_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_s, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodS", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(s)", 1099s # out_arg_s); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_s: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_s: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_s ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *arg_s) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(s)", 1099s # arg_s)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp9ua7fv52.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp9ua7fv52.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_o", 1099s # (gchar *) "o", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodO", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-o", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-o", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_o, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_o: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_o ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodO", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_o_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_o_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_o, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(o)", 1099s # out_arg_o); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_o_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_o_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_o, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodO", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(o)", 1099s # out_arg_o); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_o: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_o: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_o ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *arg_o) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(o)", 1099s # arg_o)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpyelykw_s.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpyelykw_s.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_g", 1099s # (gchar *) "g", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodG", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-g", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-g", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_g, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_g: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_g ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodG", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_g_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_g_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_g, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(g)", 1099s # out_arg_g); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_g_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_g_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_g, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodG", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(g)", 1099s # out_arg_g); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_g: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_g: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_g ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *arg_g) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(g)", 1099s # arg_g)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp_3sdgkvv.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp_3sdgkvv.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_h", 1099s # (gchar *) "h", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodH", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-h", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-h", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_h, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_h: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_h ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodH", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_h_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_h_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GVariant **out_arg_h, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(@h)", 1099s # out_arg_h); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_h_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_h_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GVariant **out_arg_h, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodH", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(@h)", 1099s # out_arg_h); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_h: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_h: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_h ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # GVariant *arg_h) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(@h)", 1099s # arg_h)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmp3alsfp1x.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmp3alsfp1x.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_ay", 1099s # (gchar *) "ay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodAy", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-ay", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-ay", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ay: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_ay ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAy", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_ay, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^ay)", 1099s # out_arg_ay); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar **out_arg_ay, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAy", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^ay)", 1099s # out_arg_ay); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_ay: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_ay: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_ay ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *arg_ay) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(^ay)", 1099s # arg_ay)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpu5jx7754.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpu5jx7754.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_as", 1099s # (gchar *) "as", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodAs", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-as", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-as", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_as, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_as: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_as ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAs", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_as_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_as_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_as, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^as)", 1099s # out_arg_as); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_as_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_as_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_as, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAs", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^as)", 1099s # out_arg_as); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_as: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_as: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_as ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *const *arg_as) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(^as)", 1099s # arg_as)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmps5_i6298.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmps5_i6298.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_ao", 1099s # (gchar *) "ao", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodAo", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-ao", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-ao", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ao: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_ao ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAo", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_ao, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^ao)", 1099s # out_arg_ao); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_ao, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAo", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^ao)", 1099s # out_arg_ao); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_ao: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_ao: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_ao ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *const *arg_ao) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(^ao)", 1099s # arg_ao)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpmia9cvln.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpmia9cvln.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_aay", 1099s # (gchar *) "aay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodAay", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-aay", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-aay", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_aay: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_aay ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAay", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_aay, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^aay)", 1099s # out_arg_aay); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # gchar ***out_arg_aay, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAay", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(^aay)", 1099s # out_arg_aay); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_aay: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_aay: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_aay ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # const gchar *const *arg_aay) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(^aay)", 1099s # arg_aay)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s # 1099s # /tmp/tmpswg0m_yj/tmpdn3oa0y1.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswg0m_yj/tmpdn3oa0y1.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.UsefulInterface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectUsefulInterface 1099s # * @title: OrgProjectUsefulInterface 1099s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "arg_asv", 1099s # (gchar *) "a{sv}", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SingleArgMethodAsv", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-single-arg-method-asv", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1099s # { 1099s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.UsefulInterface", 1099s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-useful-interface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_useful_interface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1099s # */ 1099s # 1099s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-single-arg-method-asv", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_asv: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_useful_interface_call_single_arg_method_asv ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAsv", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GVariant **out_arg_asv, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(@a{sv})", 1099s # out_arg_asv); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1099s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1099s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1099s # OrgProjectUsefulInterface *proxy, 1099s # GVariant **out_arg_asv, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SingleArgMethodAsv", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(@a{sv})", 1099s # out_arg_asv); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_complete_single_arg_method_asv: 1099s # * @object: A #OrgProjectUsefulInterface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @arg_asv: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_useful_interface_complete_single_arg_method_asv ( 1099s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # GVariant *arg_asv) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(@a{sv})", 1099s # arg_asv)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxy: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1099s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1099s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_useful_interface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeleton: 1099s # * 1099s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectUsefulInterfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_useful_interface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_useful_interface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_useful_interface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1099s # { 1099s # _org_project_useful_interface_skeleton_handle_method_call, 1099s # _org_project_useful_interface_skeleton_handle_get_property, 1099s # _org_project_useful_interface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_useful_interface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_useful_interface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_useful_interface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectUsefulInterface * 1099s # org_project_useful_interface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmptrv43rx5 1099s # /tmp/tmptrv43rx5/tmpa4j92dqx.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptrv43rx5/tmpa4j92dqx.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 20); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # g_marshal_value_peek_boolean (param_values + 2), 1099s # g_marshal_value_peek_uchar (param_values + 3), 1099s # g_marshal_value_peek_int (param_values + 4), 1099s # g_marshal_value_peek_uint (param_values + 5), 1099s # g_marshal_value_peek_int (param_values + 6), 1099s # g_marshal_value_peek_uint (param_values + 7), 1099s # g_marshal_value_peek_int64 (param_values + 8), 1099s # g_marshal_value_peek_uint64 (param_values + 9), 1099s # g_marshal_value_peek_double (param_values + 10), 1099s # g_marshal_value_peek_string (param_values + 11), 1099s # g_marshal_value_peek_string (param_values + 12), 1099s # g_marshal_value_peek_string (param_values + 13), 1099s # g_marshal_value_peek_variant (param_values + 14), 1099s # g_marshal_value_peek_string (param_values + 15), 1099s # g_marshal_value_peek_boxed (param_values + 16), 1099s # g_marshal_value_peek_boxed (param_values + 17), 1099s # g_marshal_value_peek_boxed (param_values + 18), 1099s # g_marshal_value_peek_variant (param_values + 19), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.CallableIface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectCallableIface 1099s # * @title: OrgProjectCallableIface 1099s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.CallableIface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_b", 1099s # (gchar *) "b", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_y", 1099s # (gchar *) "y", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_n", 1099s # (gchar *) "n", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_q", 1099s # (gchar *) "q", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_i", 1099s # (gchar *) "i", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_u", 1099s # (gchar *) "u", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_x", 1099s # (gchar *) "x", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_t", 1099s # (gchar *) "t", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_d", 1099s # (gchar *) "d", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_s", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_o", 1099s # (gchar *) "o", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_g", 1099s # (gchar *) "g", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_h", 1099s # (gchar *) "h", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ay", 1099s # (gchar *) "ay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_as", 1099s # (gchar *) "as", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ao", 1099s # (gchar *) "ao", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_aay", 1099s # (gchar *) "aay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_asv", 1099s # (gchar *) "a{sv}", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1099s # { 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "MethodWithManyArgs", 1099s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "handle-method-with-many-args", 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_b", 1099s # (gchar *) "b", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_y", 1099s # (gchar *) "y", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_n", 1099s # (gchar *) "n", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_q", 1099s # (gchar *) "q", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_i", 1099s # (gchar *) "i", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_u", 1099s # (gchar *) "u", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_x", 1099s # (gchar *) "x", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_t", 1099s # (gchar *) "t", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_d", 1099s # (gchar *) "d", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_s", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_o", 1099s # (gchar *) "o", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_g", 1099s # (gchar *) "g", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_h", 1099s # (gchar *) "h", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ay", 1099s # (gchar *) "ay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_as", 1099s # (gchar *) "as", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ao", 1099s # (gchar *) "ao", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_aay", 1099s # (gchar *) "aay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_asv", 1099s # (gchar *) "a{sv}", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1099s # { 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "SameMethodWithManyArgs", 1099s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "handle-same-method-with-many-args", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1099s # { 1099s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1099s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.CallableIface", 1099s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-callable-iface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_callable_iface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_callable_iface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_callable_iface_method_marshal_method_with_many_args ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _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, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # inline static void 1099s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _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, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectCallableIface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1099s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.CallableIface. 1099s # */ 1099s # 1099s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectCallableIface::handle-method-with-many-args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * @arg_an_b: Argument passed by remote caller. 1099s # * @arg_an_y: Argument passed by remote caller. 1099s # * @arg_an_n: Argument passed by remote caller. 1099s # * @arg_an_q: Argument passed by remote caller. 1099s # * @arg_an_i: Argument passed by remote caller. 1099s # * @arg_an_u: Argument passed by remote caller. 1099s # * @arg_an_x: Argument passed by remote caller. 1099s # * @arg_an_t: Argument passed by remote caller. 1099s # * @arg_an_d: Argument passed by remote caller. 1099s # * @arg_an_s: Argument passed by remote caller. 1099s # * @arg_an_o: Argument passed by remote caller. 1099s # * @arg_an_g: Argument passed by remote caller. 1099s # * @arg_an_h: Argument passed by remote caller. 1099s # * @arg_an_ay: Argument passed by remote caller. 1099s # * @arg_an_as: Argument passed by remote caller. 1099s # * @arg_an_ao: Argument passed by remote caller. 1099s # * @arg_an_aay: Argument passed by remote caller. 1099s # * @arg_an_asv: Argument passed by remote caller. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-method-with-many-args", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_callable_iface_method_marshal_method_with_many_args, 1099s # G_TYPE_BOOLEAN, 1099s # 19, 1099s # 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); 1099s # 1099s # /** 1099s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * @arg_an_b: Argument passed by remote caller. 1099s # * @arg_an_y: Argument passed by remote caller. 1099s # * @arg_an_n: Argument passed by remote caller. 1099s # * @arg_an_q: Argument passed by remote caller. 1099s # * @arg_an_i: Argument passed by remote caller. 1099s # * @arg_an_u: Argument passed by remote caller. 1099s # * @arg_an_x: Argument passed by remote caller. 1099s # * @arg_an_t: Argument passed by remote caller. 1099s # * @arg_an_d: Argument passed by remote caller. 1099s # * @arg_an_s: Argument passed by remote caller. 1099s # * @arg_an_o: Argument passed by remote caller. 1099s # * @arg_an_g: Argument passed by remote caller. 1099s # * @arg_an_h: Argument passed by remote caller. 1099s # * @arg_an_ay: Argument passed by remote caller. 1099s # * @arg_an_as: Argument passed by remote caller. 1099s # * @arg_an_ao: Argument passed by remote caller. 1099s # * @arg_an_aay: Argument passed by remote caller. 1099s # * @arg_an_asv: Argument passed by remote caller. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-same-method-with-many-args", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1099s # G_TYPE_BOOLEAN, 1099s # 19, 1099s # 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); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_callable_iface_call_method_with_many_args ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args_finish: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_method_with_many_args_finish ( 1099s # OrgProjectCallableIface *proxy, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args_sync: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_method_with_many_args_sync ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_same_method_with_many_args: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_callable_iface_call_same_method_with_many_args ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "SameMethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1099s # OrgProjectCallableIface *proxy, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "SameMethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_complete_method_with_many_args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_callable_iface_complete_method_with_many_args ( 1099s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("()")); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_complete_same_method_with_many_args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_callable_iface_complete_same_method_with_many_args ( 1099s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("()")); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceProxy: 1099s # * 1099s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectCallableIfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectCallableIfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_callable_iface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1099s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1099s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_callable_iface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_callable_iface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceSkeleton: 1099s # * 1099s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectCallableIfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_callable_iface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_callable_iface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_callable_iface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1099s # { 1099s # _org_project_callable_iface_skeleton_handle_method_call, 1099s # _org_project_callable_iface_skeleton_handle_get_property, 1099s # _org_project_callable_iface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_callable_iface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_callable_iface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.OtherCallableIface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectOtherCallableIface 1099s # * @title: OrgProjectOtherCallableIface 1099s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_b", 1099s # (gchar *) "b", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_y", 1099s # (gchar *) "y", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_n", 1099s # (gchar *) "n", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_q", 1099s # (gchar *) "q", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_i", 1099s # (gchar *) "i", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_u", 1099s # (gchar *) "u", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_x", 1099s # (gchar *) "x", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_t", 1099s # (gchar *) "t", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_d", 1099s # (gchar *) "d", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_s", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_o", 1099s # (gchar *) "o", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_g", 1099s # (gchar *) "g", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_h", 1099s # (gchar *) "h", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ay", 1099s # (gchar *) "ay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_as", 1099s # (gchar *) "as", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ao", 1099s # (gchar *) "ao", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_aay", 1099s # (gchar *) "aay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_asv", 1099s # (gchar *) "a{sv}", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1099s # { 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "MethodWithManyArgs", 1099s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "handle-method-with-many-args", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1099s # { 1099s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.OtherCallableIface", 1099s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-other-callable-iface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_other_callable_iface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _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, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1099s # */ 1099s # 1099s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1099s # * @object: A #OrgProjectOtherCallableIface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * @arg_an_b: Argument passed by remote caller. 1099s # * @arg_an_y: Argument passed by remote caller. 1099s # * @arg_an_n: Argument passed by remote caller. 1099s # * @arg_an_q: Argument passed by remote caller. 1099s # * @arg_an_i: Argument passed by remote caller. 1099s # * @arg_an_u: Argument passed by remote caller. 1099s # * @arg_an_x: Argument passed by remote caller. 1099s # * @arg_an_t: Argument passed by remote caller. 1099s # * @arg_an_d: Argument passed by remote caller. 1099s # * @arg_an_s: Argument passed by remote caller. 1099s # * @arg_an_o: Argument passed by remote caller. 1099s # * @arg_an_g: Argument passed by remote caller. 1099s # * @arg_an_h: Argument passed by remote caller. 1099s # * @arg_an_ay: Argument passed by remote caller. 1099s # * @arg_an_as: Argument passed by remote caller. 1099s # * @arg_an_ao: Argument passed by remote caller. 1099s # * @arg_an_aay: Argument passed by remote caller. 1099s # * @arg_an_asv: Argument passed by remote caller. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-method-with-many-args", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1099s # G_TYPE_BOOLEAN, 1099s # 19, 1099s # 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); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_call_method_with_many_args: 1099s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_other_callable_iface_call_method_with_many_args ( 1099s # OrgProjectOtherCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1099s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1099s # OrgProjectOtherCallableIface *proxy, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1099s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1099s # * @arg_an_b: Argument to pass with the method invocation. 1099s # * @arg_an_y: Argument to pass with the method invocation. 1099s # * @arg_an_n: Argument to pass with the method invocation. 1099s # * @arg_an_q: Argument to pass with the method invocation. 1099s # * @arg_an_i: Argument to pass with the method invocation. 1099s # * @arg_an_u: Argument to pass with the method invocation. 1099s # * @arg_an_x: Argument to pass with the method invocation. 1099s # * @arg_an_t: Argument to pass with the method invocation. 1099s # * @arg_an_d: Argument to pass with the method invocation. 1099s # * @arg_an_s: Argument to pass with the method invocation. 1099s # * @arg_an_o: Argument to pass with the method invocation. 1099s # * @arg_an_g: Argument to pass with the method invocation. 1099s # * @arg_an_h: Argument to pass with the method invocation. 1099s # * @arg_an_ay: Argument to pass with the method invocation. 1099s # * @arg_an_as: Argument to pass with the method invocation. 1099s # * @arg_an_ao: Argument to pass with the method invocation. 1099s # * @arg_an_aay: Argument to pass with the method invocation. 1099s # * @arg_an_asv: Argument to pass with the method invocation. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1099s # OrgProjectOtherCallableIface *proxy, 1099s # gboolean arg_an_b, 1099s # guchar arg_an_y, 1099s # gint16 arg_an_n, 1099s # guint16 arg_an_q, 1099s # gint arg_an_i, 1099s # guint arg_an_u, 1099s # gint64 arg_an_x, 1099s # guint64 arg_an_t, 1099s # gdouble arg_an_d, 1099s # const gchar *arg_an_s, 1099s # const gchar *arg_an_o, 1099s # const gchar *arg_an_g, 1099s # GVariant *arg_an_h, 1099s # const gchar *arg_an_ay, 1099s # const gchar *const *arg_an_as, 1099s # const gchar *const *arg_an_ao, 1099s # const gchar *const *arg_an_aay, 1099s # GVariant *arg_an_asv, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # arg_an_b, 1099s # arg_an_y, 1099s # arg_an_n, 1099s # arg_an_q, 1099s # arg_an_i, 1099s # arg_an_u, 1099s # arg_an_x, 1099s # arg_an_t, 1099s # arg_an_d, 1099s # arg_an_s, 1099s # arg_an_o, 1099s # arg_an_g, 1099s # arg_an_h, 1099s # arg_an_ay, 1099s # arg_an_as, 1099s # arg_an_ao, 1099s # arg_an_aay, 1099s # arg_an_asv), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "()"); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_complete_method_with_many_args: 1099s # * @object: A #OrgProjectOtherCallableIface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_other_callable_iface_complete_method_with_many_args ( 1099s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("()")); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIfaceProxy: 1099s # * 1099s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1099s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1099s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_other_callable_iface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectOtherCallableIface * 1099s # org_project_other_callable_iface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectOtherCallableIface * 1099s # org_project_other_callable_iface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_other_callable_iface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectOtherCallableIface * 1099s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectOtherCallableIface * 1099s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIfaceSkeleton: 1099s # * 1099s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectOtherCallableIfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1099s # { 1099s # _org_project_other_callable_iface_skeleton_handle_method_call, 1099s # _org_project_other_callable_iface_skeleton_handle_get_property, 1099s # _org_project_other_callable_iface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_other_callable_iface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_other_callable_iface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectOtherCallableIface * 1099s # org_project_other_callable_iface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmpuxz30xa5 1099s # /tmp/tmpuxz30xa5/tmp8wv6bh5c.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuxz30xa5/tmp8wv6bh5c.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 2); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface org.project.CallableIface 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:OrgProjectCallableIface 1099s # * @title: OrgProjectCallableIface 1099s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1099s # * 1099s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for org.project.CallableIface ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_b", 1099s # (gchar *) "b", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_y", 1099s # (gchar *) "y", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_n", 1099s # (gchar *) "n", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_q", 1099s # (gchar *) "q", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_i", 1099s # (gchar *) "i", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_u", 1099s # (gchar *) "u", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_x", 1099s # (gchar *) "x", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_t", 1099s # (gchar *) "t", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_d", 1099s # (gchar *) "d", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_s", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_o", 1099s # (gchar *) "o", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_g", 1099s # (gchar *) "g", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_h", 1099s # (gchar *) "h", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ay", 1099s # (gchar *) "ay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_as", 1099s # (gchar *) "as", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_ao", 1099s # (gchar *) "ao", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_aay", 1099s # (gchar *) "aay", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "an_asv", 1099s # (gchar *) "a{sv}", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1099s # { 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1099s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "MethodWithManyArgs", 1099s # NULL, 1099s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-method-with-many-args", 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1099s # { 1099s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "org.project.CallableIface", 1099s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "org-project-callable-iface", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * org_project_callable_iface_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # org_project_callable_iface_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # org_project_callable_iface_method_marshal_method_with_many_args ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * OrgProjectCallableIface: 1099s # * 1099s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1099s # * 1099s # * Virtual table for the D-Bus interface org.project.CallableIface. 1099s # */ 1099s # 1099s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1099s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * OrgProjectCallableIface::handle-method-with-many-args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-method-with-many-args", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # org_project_callable_iface_method_marshal_method_with_many_args, 1099s # G_TYPE_BOOLEAN, 1099s # 1, 1099s # G_TYPE_DBUS_METHOD_INVOCATION); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # org_project_callable_iface_call_method_with_many_args ( 1099s # OrgProjectCallableIface *proxy, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args_finish: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_method_with_many_args_finish ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean *out_an_b, 1099s # guchar *out_an_y, 1099s # gint16 *out_an_n, 1099s # guint16 *out_an_q, 1099s # gint *out_an_i, 1099s # guint *out_an_u, 1099s # gint64 *out_an_x, 1099s # guint64 *out_an_t, 1099s # gdouble *out_an_d, 1099s # gchar **out_an_s, 1099s # gchar **out_an_o, 1099s # gchar **out_an_g, 1099s # GVariant **out_an_h, 1099s # gchar **out_an_ay, 1099s # gchar ***out_an_as, 1099s # gchar ***out_an_ao, 1099s # gchar ***out_an_aay, 1099s # GVariant **out_an_asv, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # out_an_b, 1099s # out_an_y, 1099s # out_an_n, 1099s # out_an_q, 1099s # out_an_i, 1099s # out_an_u, 1099s # out_an_x, 1099s # out_an_t, 1099s # out_an_d, 1099s # out_an_s, 1099s # out_an_o, 1099s # out_an_g, 1099s # out_an_h, 1099s # out_an_ay, 1099s # out_an_as, 1099s # out_an_ao, 1099s # out_an_aay, 1099s # out_an_asv); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_call_method_with_many_args_sync: 1099s # * @proxy: A #OrgProjectCallableIfaceProxy. 1099s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1099s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # org_project_callable_iface_call_method_with_many_args_sync ( 1099s # OrgProjectCallableIface *proxy, 1099s # gboolean *out_an_b, 1099s # guchar *out_an_y, 1099s # gint16 *out_an_n, 1099s # guint16 *out_an_q, 1099s # gint *out_an_i, 1099s # guint *out_an_u, 1099s # gint64 *out_an_x, 1099s # guint64 *out_an_t, 1099s # gdouble *out_an_d, 1099s # gchar **out_an_s, 1099s # gchar **out_an_o, 1099s # gchar **out_an_g, 1099s # GVariant **out_an_h, 1099s # gchar **out_an_ay, 1099s # gchar ***out_an_as, 1099s # gchar ***out_an_ao, 1099s # gchar ***out_an_aay, 1099s # GVariant **out_an_asv, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1099s # "MethodWithManyArgs", 1099s # g_variant_new ("()"), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # out_an_b, 1099s # out_an_y, 1099s # out_an_n, 1099s # out_an_q, 1099s # out_an_i, 1099s # out_an_u, 1099s # out_an_x, 1099s # out_an_t, 1099s # out_an_d, 1099s # out_an_s, 1099s # out_an_o, 1099s # out_an_g, 1099s # out_an_h, 1099s # out_an_ay, 1099s # out_an_as, 1099s # out_an_ao, 1099s # out_an_aay, 1099s # out_an_asv); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_complete_method_with_many_args: 1099s # * @object: A #OrgProjectCallableIface. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @an_b: Parameter to return. 1099s # * @an_y: Parameter to return. 1099s # * @an_n: Parameter to return. 1099s # * @an_q: Parameter to return. 1099s # * @an_i: Parameter to return. 1099s # * @an_u: Parameter to return. 1099s # * @an_x: Parameter to return. 1099s # * @an_t: Parameter to return. 1099s # * @an_d: Parameter to return. 1099s # * @an_s: Parameter to return. 1099s # * @an_o: Parameter to return. 1099s # * @an_g: Parameter to return. 1099s # * @an_h: Parameter to return. 1099s # * @an_ay: Parameter to return. 1099s # * @an_as: Parameter to return. 1099s # * @an_ao: Parameter to return. 1099s # * @an_aay: Parameter to return. 1099s # * @an_asv: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # org_project_callable_iface_complete_method_with_many_args ( 1099s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # gboolean an_b, 1099s # guchar an_y, 1099s # gint16 an_n, 1099s # guint16 an_q, 1099s # gint an_i, 1099s # guint an_u, 1099s # gint64 an_x, 1099s # guint64 an_t, 1099s # gdouble an_d, 1099s # const gchar *an_s, 1099s # const gchar *an_o, 1099s # const gchar *an_g, 1099s # GVariant *an_h, 1099s # const gchar *an_ay, 1099s # const gchar *const *an_as, 1099s # const gchar *const *an_ao, 1099s # const gchar *const *an_aay, 1099s # GVariant *an_asv) 1099s # { 1099s # g_dbus_method_invocation_return_value (invocation, 1099s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1099s # an_b, 1099s # an_y, 1099s # an_n, 1099s # an_q, 1099s # an_i, 1099s # an_u, 1099s # an_x, 1099s # an_t, 1099s # an_d, 1099s # an_s, 1099s # an_o, 1099s # an_g, 1099s # an_h, 1099s # an_ay, 1099s # an_as, 1099s # an_ao, 1099s # an_aay, 1099s # an_asv)); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceProxy: 1099s # * 1099s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectCallableIfaceProxy. 1099s # */ 1099s # 1099s # struct _OrgProjectCallableIfaceProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_callable_iface_proxy_finalize (GObject *object) 1099s # { 1099s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1099s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1099s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1099s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_callable_iface_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # org_project_callable_iface_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceSkeleton: 1099s # * 1099s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * OrgProjectCallableIfaceSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1099s # */ 1099s # 1099s # struct _OrgProjectCallableIfaceSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _org_project_callable_iface_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _org_project_callable_iface_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _org_project_callable_iface_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1099s # { 1099s # _org_project_callable_iface_skeleton_handle_method_call, 1099s # _org_project_callable_iface_skeleton_handle_get_property, 1099s # _org_project_callable_iface_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return org_project_callable_iface_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # org_project_callable_iface_skeleton_finalize (GObject *object) 1099s # { 1099s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * org_project_callable_iface_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1099s # * 1099s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1099s # */ 1099s # OrgProjectCallableIface * 1099s # org_project_callable_iface_skeleton_new (void) 1099s # { 1099s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmpsbap9u57 1099s # /tmp/tmpsbap9u57/tmpongr2eyf.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsbap9u57/tmpongr2eyf.xml', '--output', '-', '--body'] 1099s # Return code: 0 1099s # Output: 1099s # /* 1099s # * This file is generated by gdbus-codegen, do not modify it. 1099s # * 1099s # * The license of this code is the same as for the D-Bus interface description 1099s # * it was derived from. Note that it links to GLib, so must comply with the 1099s # * LGPL linking clauses. 1099s # */ 1099s # 1099s # #ifdef HAVE_CONFIG_H 1099s # # include "config.h" 1099s # #endif 1099s # 1099s # #include 1099s # #ifdef G_OS_UNIX 1099s # # include 1099s # #endif 1099s # 1099s # #ifdef G_ENABLE_DEBUG 1099s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1099s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1099s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1099s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1099s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1099s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1099s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1099s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1099s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1099s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1099s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1099s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1099s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1099s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1099s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1099s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1099s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1099s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1099s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1099s # #else /* !G_ENABLE_DEBUG */ 1099s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1099s # * Do not access GValues directly in your code. Instead, use the 1099s # * g_value_get_*() functions 1099s # */ 1099s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1099s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1099s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1099s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1099s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1099s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1099s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1099s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1099s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1099s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1099s # #endif /* !G_ENABLE_DEBUG */ 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusArgInfo parent_struct; 1099s # gboolean use_gvariant; 1099s # } _ExtendedGDBusArgInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusMethodInfo parent_struct; 1099s # const gchar *signal_name; 1099s # gboolean pass_fdlist; 1099s # } _ExtendedGDBusMethodInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusSignalInfo parent_struct; 1099s # const gchar *signal_name; 1099s # } _ExtendedGDBusSignalInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusPropertyInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # guint use_gvariant : 1; 1099s # guint emits_changed_signal : 1; 1099s # } _ExtendedGDBusPropertyInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # GDBusInterfaceInfo parent_struct; 1099s # const gchar *hyphen_name; 1099s # } _ExtendedGDBusInterfaceInfo; 1099s # 1099s # typedef struct 1099s # { 1099s # const _ExtendedGDBusPropertyInfo *info; 1099s # guint prop_id; 1099s # GValue orig_value; /* the value before the change */ 1099s # } ChangedProperty; 1099s # 1099s # static void 1099s # _changed_property_free (ChangedProperty *data) 1099s # { 1099s # g_value_unset (&data->orig_value); 1099s # g_free (data); 1099s # } 1099s # 1099s # static gboolean 1099s # _g_strv_equal0 (gchar **a, gchar **b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # guint n; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # if (g_strv_length (a) != g_strv_length (b)) 1099s # goto out; 1099s # for (n = 0; a[n] != NULL; n++) 1099s # if (g_strcmp0 (a[n], b[n]) != 0) 1099s # goto out; 1099s # ret = TRUE; 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _g_variant_equal0 (GVariant *a, GVariant *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # if (a == NULL && b == NULL) 1099s # { 1099s # ret = TRUE; 1099s # goto out; 1099s # } 1099s # if (a == NULL || b == NULL) 1099s # goto out; 1099s # ret = g_variant_equal (a, b); 1099s # out: 1099s # return ret; 1099s # } 1099s # 1099s # G_GNUC_UNUSED static gboolean 1099s # _g_value_equal (const GValue *a, const GValue *b) 1099s # { 1099s # gboolean ret = FALSE; 1099s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1099s # switch (G_VALUE_TYPE (a)) 1099s # { 1099s # case G_TYPE_BOOLEAN: 1099s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1099s # break; 1099s # case G_TYPE_UCHAR: 1099s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1099s # break; 1099s # case G_TYPE_INT: 1099s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1099s # break; 1099s # case G_TYPE_UINT: 1099s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1099s # break; 1099s # case G_TYPE_INT64: 1099s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1099s # break; 1099s # case G_TYPE_UINT64: 1099s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1099s # break; 1099s # case G_TYPE_DOUBLE: 1099s # { 1099s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1099s # gdouble da = g_value_get_double (a); 1099s # gdouble db = g_value_get_double (b); 1099s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1099s # } 1099s # break; 1099s # case G_TYPE_STRING: 1099s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1099s # break; 1099s # case G_TYPE_VARIANT: 1099s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1099s # break; 1099s # default: 1099s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1099s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1099s # else 1099s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1099s # break; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static void 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint G_GNUC_UNUSED, 1099s # void *marshal_data) 1099s # { 1099s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1099s # (void *data1, 1099s # GDBusMethodInvocation *arg_method_invocation, 1099s # GUnixFDList *arg_fd_list, 1099s # const gchar *arg_greeting, 1099s # void *data2); 1099s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1099s # GCClosure *cc = (GCClosure*) closure; 1099s # void *data1, *data2; 1099s # gboolean v_return; 1099s # 1099s # g_return_if_fail (return_value != NULL); 1099s # g_return_if_fail (n_param_values == 4); 1099s # 1099s # if (G_CCLOSURE_SWAP_DATA (closure)) 1099s # { 1099s # data1 = closure->data; 1099s # data2 = g_value_peek_pointer (param_values + 0); 1099s # } 1099s # else 1099s # { 1099s # data1 = g_value_peek_pointer (param_values + 0); 1099s # data2 = closure->data; 1099s # } 1099s # 1099s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1099s # (marshal_data ? marshal_data : cc->callback); 1099s # 1099s # v_return = 1099s # callback (data1, 1099s # g_marshal_value_peek_object (param_values + 1), 1099s # g_marshal_value_peek_object (param_values + 2), 1099s # g_marshal_value_peek_string (param_values + 3), 1099s # data2); 1099s # 1099s # g_value_set_boolean (return_value, v_return); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ 1099s # * Code for interface test.FDPassing 1099s # * ------------------------------------------------------------------------ 1099s # */ 1099s # 1099s # /** 1099s # * SECTION:TestFDPassing 1099s # * @title: TestFDPassing 1099s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1099s # * 1099s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1099s # */ 1099s # 1099s # /* ---- Introspection data for test.FDPassing ---- */ 1099s # 1099s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "greeting", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1099s # { 1099s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "response", 1099s # (gchar *) "s", 1099s # NULL 1099s # }, 1099s # FALSE 1099s # }; 1099s # 1099s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1099s # { 1099s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "HelloFD", 1099s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1099s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1099s # NULL 1099s # }, 1099s # "handle-hello-fd", 1099s # TRUE 1099s # }; 1099s # 1099s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1099s # { 1099s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1099s # NULL 1099s # }; 1099s # 1099s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1099s # { 1099s # { 1099s # -1, 1099s # (gchar *) "test.FDPassing", 1099s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1099s # NULL, 1099s # NULL, 1099s # NULL 1099s # }, 1099s # "test-fdpassing", 1099s # }; 1099s # 1099s # 1099s # /** 1099s # * test_fdpassing_interface_info: 1099s # * 1099s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1099s # * 1099s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1099s # */ 1099s # GDBusInterfaceInfo * 1099s # test_fdpassing_interface_info (void) 1099s # { 1099s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_override_properties: 1099s # * @klass: The class structure for a #GObject derived class. 1099s # * @property_id_begin: The property id to assign to the first overridden property. 1099s # * 1099s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1099s # * The properties are overridden in the order they are defined. 1099s # * 1099s # * Returns: The last property id. 1099s # */ 1099s # guint 1099s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1099s # { 1099s # return property_id_begin - 1; 1099s # } 1099s # 1099s # 1099s # inline static void 1099s # test_fdpassing_method_marshal_hello_fd ( 1099s # GClosure *closure, 1099s # GValue *return_value, 1099s # unsigned int n_param_values, 1099s # const GValue *param_values, 1099s # void *invocation_hint, 1099s # void *marshal_data) 1099s # { 1099s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1099s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1099s # } 1099s # 1099s # 1099s # /** 1099s # * TestFDPassing: 1099s # * 1099s # * Abstract interface type for the D-Bus interface test.FDPassing. 1099s # */ 1099s # 1099s # /** 1099s # * TestFDPassingIface: 1099s # * @parent_iface: The parent interface. 1099s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1099s # * 1099s # * Virtual table for the D-Bus interface test.FDPassing. 1099s # */ 1099s # 1099s # typedef TestFDPassingIface TestFDPassingInterface; 1099s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1099s # 1099s # static void 1099s # test_fdpassing_default_init (TestFDPassingIface *iface) 1099s # { 1099s # /* GObject signals for incoming D-Bus method calls: */ 1099s # /** 1099s # * TestFDPassing::handle-hello-fd: 1099s # * @object: A #TestFDPassing. 1099s # * @invocation: A #GDBusMethodInvocation. 1099s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1099s # * @arg_greeting: Argument passed by remote caller. 1099s # * 1099s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1099s # * 1099s # * 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. 1099s # * 1099s # * 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. 1099s # */ 1099s # g_signal_new ("handle-hello-fd", 1099s # G_TYPE_FROM_INTERFACE (iface), 1099s # G_SIGNAL_RUN_LAST, 1099s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1099s # g_signal_accumulator_true_handled, 1099s # NULL, 1099s # test_fdpassing_method_marshal_hello_fd, 1099s # G_TYPE_BOOLEAN, 1099s # 3, 1099s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1099s # 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_call_hello_fd: 1099s # * @proxy: A #TestFDPassingProxy. 1099s # * @arg_greeting: Argument to pass with the method invocation. 1099s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1099s # * 1099s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1099s # */ 1099s # void 1099s # test_fdpassing_call_hello_fd ( 1099s # TestFDPassing *proxy, 1099s # const gchar *arg_greeting, 1099s # GUnixFDList *fd_list, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1099s # "HelloFD", 1099s # g_variant_new ("(s)", 1099s # arg_greeting), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # fd_list, 1099s # cancellable, 1099s # callback, 1099s # user_data); 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_call_hello_fd_finish: 1099s # * @proxy: A #TestFDPassingProxy. 1099s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # test_fdpassing_call_hello_fd_finish ( 1099s # TestFDPassing *proxy, 1099s # gchar **out_response, 1099s # GUnixFDList **out_fd_list, 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(s)", 1099s # out_response); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_call_hello_fd_sync: 1099s # * @proxy: A #TestFDPassingProxy. 1099s # * @arg_greeting: Argument to pass with the method invocation. 1099s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1099s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1099s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL. 1099s # * 1099s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1099s # * 1099s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1099s # * 1099s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1099s # */ 1099s # gboolean 1099s # test_fdpassing_call_hello_fd_sync ( 1099s # TestFDPassing *proxy, 1099s # const gchar *arg_greeting, 1099s # GUnixFDList *fd_list, 1099s # gchar **out_response, 1099s # GUnixFDList **out_fd_list, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GVariant *_ret; 1099s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1099s # "HelloFD", 1099s # g_variant_new ("(s)", 1099s # arg_greeting), 1099s # G_DBUS_CALL_FLAGS_NONE, 1099s # -1, 1099s # fd_list, 1099s # out_fd_list, 1099s # cancellable, 1099s # error); 1099s # if (_ret == NULL) 1099s # goto _out; 1099s # g_variant_get (_ret, 1099s # "(s)", 1099s # out_response); 1099s # g_variant_unref (_ret); 1099s # _out: 1099s # return _ret != NULL; 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_complete_hello_fd: 1099s # * @object: A #TestFDPassing. 1099s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1099s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1099s # * @response: Parameter to return. 1099s # * 1099s # * 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. 1099s # * 1099s # * This method will free @invocation, you cannot use it afterwards. 1099s # */ 1099s # void 1099s # test_fdpassing_complete_hello_fd ( 1099s # TestFDPassing *object G_GNUC_UNUSED, 1099s # GDBusMethodInvocation *invocation, 1099s # GUnixFDList *fd_list, 1099s # const gchar *response) 1099s # { 1099s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1099s # g_variant_new ("(s)", 1099s # response), 1099s # fd_list); 1099s # } 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * TestFDPassingProxy: 1099s # * 1099s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * TestFDPassingProxyClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #TestFDPassingProxy. 1099s # */ 1099s # 1099s # struct _TestFDPassingProxyPrivate 1099s # { 1099s # GData *qdata; 1099s # }; 1099s # 1099s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1099s # G_ADD_PRIVATE (TestFDPassingProxy) 1099s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1099s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # test_fdpassing_proxy_finalize (GObject *object) 1099s # { 1099s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1099s # g_datalist_clear (&proxy->priv->qdata); 1099s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1099s # guint prop_id G_GNUC_UNUSED, 1099s # const GValue *value G_GNUC_UNUSED, 1099s # GParamSpec *pspec G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1099s # const gchar *sender_name G_GNUC_UNUSED, 1099s # const gchar *signal_name, 1099s # GVariant *parameters) 1099s # { 1099s # _ExtendedGDBusSignalInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # gsize n; 1099s # guint signal_id; 1099s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1099s # if (info == NULL) 1099s # return; 1099s # num_params = g_variant_n_children (parameters); 1099s # paramv = g_new0 (GValue, num_params + 1); 1099s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1099s # g_value_set_object (¶mv[0], proxy); 1099s # g_variant_iter_init (&iter, parameters); 1099s # n = 1; 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1099s # g_signal_emitv (paramv, signal_id, 0, NULL); 1099s # for (n = 0; n < num_params + 1; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1099s # GVariant *changed_properties, 1099s # const gchar *const *invalidated_properties) 1099s # { 1099s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1099s # guint n; 1099s # const gchar *key; 1099s # GVariantIter *iter; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # g_variant_get (changed_properties, "a{sv}", &iter); 1099s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1099s # g_datalist_remove_data (&proxy->priv->qdata, key); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # g_variant_iter_free (iter); 1099s # for (n = 0; invalidated_properties[n] != NULL; n++) 1099s # { 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1099s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1099s # if (info != NULL) 1099s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1099s # } 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1099s # #else 1099s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1099s # #endif 1099s # 1099s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusProxyClass *proxy_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1099s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1099s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1099s # 1099s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1099s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1099s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1099s # * 1099s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # test_fdpassing_proxy_new ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with test_fdpassing_proxy_new(). 1099s # * 1099s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # TestFDPassing * 1099s # test_fdpassing_proxy_new_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return TEST_FDPASSING (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new_sync: 1099s # * @connection: A #GDBusConnection. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # TestFDPassing * 1099s # test_fdpassing_proxy_new_sync ( 1099s # GDBusConnection *connection, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return TEST_FDPASSING (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new_for_bus: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1099s # * @user_data: User data to pass to @callback. 1099s # * 1099s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1099s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1099s # * 1099s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1099s # */ 1099s # void 1099s # test_fdpassing_proxy_new_for_bus ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GAsyncReadyCallback callback, 1099s # gpointer user_data) 1099s # { 1099s # 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); 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new_for_bus_finish: 1099s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1099s # * 1099s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # TestFDPassing * 1099s # test_fdpassing_proxy_new_for_bus_finish ( 1099s # GAsyncResult *res, 1099s # GError **error) 1099s # { 1099s # GObject *ret; 1099s # GObject *source_object; 1099s # source_object = g_async_result_get_source_object (res); 1099s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1099s # g_object_unref (source_object); 1099s # if (ret != NULL) 1099s # return TEST_FDPASSING (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_proxy_new_for_bus_sync: 1099s # * @bus_type: A #GBusType. 1099s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1099s # * @name: A bus name (well-known or unique). 1099s # * @object_path: An object path. 1099s # * @cancellable: (nullable): A #GCancellable or %NULL. 1099s # * @error: Return location for error or %NULL 1099s # * 1099s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1099s # * 1099s # * The calling thread is blocked until a reply is received. 1099s # * 1099s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1099s # * 1099s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1099s # */ 1099s # TestFDPassing * 1099s # test_fdpassing_proxy_new_for_bus_sync ( 1099s # GBusType bus_type, 1099s # GDBusProxyFlags flags, 1099s # const gchar *name, 1099s # const gchar *object_path, 1099s # GCancellable *cancellable, 1099s # GError **error) 1099s # { 1099s # GInitable *ret; 1099s # 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); 1099s # if (ret != NULL) 1099s # return TEST_FDPASSING (ret); 1099s # else 1099s # return NULL; 1099s # } 1099s # 1099s # 1099s # /* ------------------------------------------------------------------------ */ 1099s # 1099s # /** 1099s # * TestFDPassingSkeleton: 1099s # * 1099s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1099s # */ 1099s # 1099s # /** 1099s # * TestFDPassingSkeletonClass: 1099s # * @parent_class: The parent class. 1099s # * 1099s # * Class structure for #TestFDPassingSkeleton. 1099s # */ 1099s # 1099s # struct _TestFDPassingSkeletonPrivate 1099s # { 1099s # GValue *properties; 1099s # GList *changed_properties; 1099s # GSource *changed_properties_idle_source; 1099s # GMainContext *context; 1099s # GMutex lock; 1099s # }; 1099s # 1099s # static void 1099s # _test_fdpassing_skeleton_handle_method_call ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name, 1099s # const gchar *method_name, 1099s # GVariant *parameters, 1099s # GDBusMethodInvocation *invocation, 1099s # gpointer user_data) 1099s # { 1099s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1099s # _ExtendedGDBusMethodInfo *info; 1099s # GVariantIter iter; 1099s # GVariant *child; 1099s # GValue *paramv; 1099s # gsize num_params; 1099s # guint num_extra; 1099s # gsize n; 1099s # guint signal_id; 1099s # GValue return_value = G_VALUE_INIT; 1099s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1099s # g_assert (info != NULL); 1099s # num_params = g_variant_n_children (parameters); 1099s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1099s # n = 0; 1099s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1099s # g_value_set_object (¶mv[n++], skeleton); 1099s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1099s # g_value_set_object (¶mv[n++], invocation); 1099s # if (info->pass_fdlist) 1099s # { 1099s # #ifdef G_OS_UNIX 1099s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1099s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1099s # #else 1099s # g_assert_not_reached (); 1099s # #endif 1099s # } 1099s # g_variant_iter_init (&iter, parameters); 1099s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1099s # { 1099s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1099s # if (arg_info->use_gvariant) 1099s # { 1099s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1099s # g_value_set_variant (¶mv[n], child); 1099s # n++; 1099s # } 1099s # else 1099s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1099s # g_variant_unref (child); 1099s # } 1099s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1099s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1099s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1099s # if (!g_value_get_boolean (&return_value)) 1099s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1099s # g_value_unset (&return_value); 1099s # for (n = 0; n < num_params + num_extra; n++) 1099s # g_value_unset (¶mv[n]); 1099s # g_free (paramv); 1099s # } 1099s # 1099s # static GVariant * 1099s # _test_fdpassing_skeleton_handle_get_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # GVariant *ret; 1099s # ret = NULL; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # g_value_init (&value, pspec->value_type); 1099s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1099s # g_value_unset (&value); 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static gboolean 1099s # _test_fdpassing_skeleton_handle_set_property ( 1099s # GDBusConnection *connection G_GNUC_UNUSED, 1099s # const gchar *sender G_GNUC_UNUSED, 1099s # const gchar *object_path G_GNUC_UNUSED, 1099s # const gchar *interface_name G_GNUC_UNUSED, 1099s # const gchar *property_name, 1099s # GVariant *variant, 1099s # GError **error, 1099s # gpointer user_data) 1099s # { 1099s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1099s # GValue value = G_VALUE_INIT; 1099s # GParamSpec *pspec; 1099s # _ExtendedGDBusPropertyInfo *info; 1099s # gboolean ret; 1099s # ret = FALSE; 1099s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1099s # g_assert (info != NULL); 1099s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1099s # if (pspec == NULL) 1099s # { 1099s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1099s # } 1099s # else 1099s # { 1099s # if (info->use_gvariant) 1099s # g_value_set_variant (&value, variant); 1099s # else 1099s # g_dbus_gvariant_to_gvalue (variant, &value); 1099s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1099s # g_value_unset (&value); 1099s # ret = TRUE; 1099s # } 1099s # return ret; 1099s # } 1099s # 1099s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1099s # { 1099s # _test_fdpassing_skeleton_handle_method_call, 1099s # _test_fdpassing_skeleton_handle_get_property, 1099s # _test_fdpassing_skeleton_handle_set_property, 1099s # {NULL} 1099s # }; 1099s # 1099s # static GDBusInterfaceInfo * 1099s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return test_fdpassing_interface_info (); 1099s # } 1099s # 1099s # static GDBusInterfaceVTable * 1099s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1099s # { 1099s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1099s # } 1099s # 1099s # static GVariant * 1099s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1099s # { 1099s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1099s # 1099s # GVariantBuilder builder; 1099s # guint n; 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1099s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #else 1099s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1099s # #endif 1099s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1099s # goto out; 1099s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1099s # { 1099s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1099s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1099s # { 1099s # GVariant *value; 1099s # 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); 1099s # if (value != NULL) 1099s # { 1099s # g_variant_take_ref (value); 1099s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1099s # g_variant_unref (value); 1099s # } 1099s # } 1099s # } 1099s # out: 1099s # return g_variant_builder_end (&builder); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1099s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1099s # 1099s # #else 1099s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1099s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1099s # 1099s # #endif 1099s # static void 1099s # test_fdpassing_skeleton_finalize (GObject *object) 1099s # { 1099s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1099s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1099s # if (skeleton->priv->changed_properties_idle_source != NULL) 1099s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1099s # g_main_context_unref (skeleton->priv->context); 1099s # g_mutex_clear (&skeleton->priv->lock); 1099s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1099s # { 1099s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1099s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1099s # #else 1099s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1099s # #endif 1099s # 1099s # g_mutex_init (&skeleton->priv->lock); 1099s # skeleton->priv->context = g_main_context_ref_thread_default (); 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1099s # { 1099s # GObjectClass *gobject_class; 1099s # GDBusInterfaceSkeletonClass *skeleton_class; 1099s # 1099s # gobject_class = G_OBJECT_CLASS (klass); 1099s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1099s # 1099s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1099s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1099s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1099s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1099s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1099s # 1099s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1099s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1099s # #endif 1099s # } 1099s # 1099s # static void 1099s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1099s # { 1099s # } 1099s # 1099s # /** 1099s # * test_fdpassing_skeleton_new: 1099s # * 1099s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1099s # * 1099s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1099s # */ 1099s # TestFDPassing * 1099s # test_fdpassing_skeleton_new (void) 1099s # { 1099s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1099s # } 1099s # Error: 1099s ok 15 __main__.TestCodegen.test_generate_rst 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmp1fpbs3b6 1099s # /tmp/tmp1fpbs3b6/tmpcivbge69.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1fpbs3b6/tmpcivbge69.xml', '--generate-rst', 'test'] 1099s # Return code: 0 1099s # Output: 1099s # 1099s # Error: 1099s ok 16 __main__.TestCodegen.test_generate_rst_method 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmpgsdhtj4i 1099s # /tmp/tmpgsdhtj4i/tmpj187d3oc.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgsdhtj4i/tmpj187d3oc.xml', '--generate-rst', 'test'] 1099s # Return code: 0 1099s # Output: 1099s # 1099s # Error: 1099s ok 17 __main__.TestCodegen.test_generate_rst_property 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmpx_shbkig 1099s # /tmp/tmpx_shbkig/tmpon72odnw.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx_shbkig/tmpon72odnw.xml', '--generate-rst', 'test'] 1099s # Return code: 0 1099s # Output: 1099s # 1099s # Error: 1099s ok 18 __main__.TestCodegen.test_generate_rst_signal 1099s # gdbus-codegen: /usr/bin/gdbus-codegen 1099s # tmpdir: /tmp/tmp_9sgbps_ 1099s # /tmp/tmp_9sgbps_/tmp1ybbewqq.xml: 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # 1099s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_9sgbps_/tmp1ybbewqq.xml', '--generate-rst', 'test'] 1099s # Return code: 0 1099s # Output: 1099s # 1099s # Error: 1100s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1100s # gdbus-codegen: /usr/bin/gdbus-codegen 1100s # tmpdir: /tmp/tmpsggmc3ln 1100s # /tmp/tmpsggmc3ln/tmpa2t__w2p.xml: 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsggmc3ln/tmpa2t__w2p.xml', '--output', '-', '--body'] 1100s # Return code: 0 1100s # Output: 1100s # /* 1100s # * This file is generated by gdbus-codegen, do not modify it. 1100s # * 1100s # * The license of this code is the same as for the D-Bus interface description 1100s # * it was derived from. Note that it links to GLib, so must comply with the 1100s # * LGPL linking clauses. 1100s # */ 1100s # 1100s # #ifdef HAVE_CONFIG_H 1100s # # include "config.h" 1100s # #endif 1100s # 1100s # #include 1100s # #ifdef G_OS_UNIX 1100s # # include 1100s # #endif 1100s # 1100s # #ifdef G_ENABLE_DEBUG 1100s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1100s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1100s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1100s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1100s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1100s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1100s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1100s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1100s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1100s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1100s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1100s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1100s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1100s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1100s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1100s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1100s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1100s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1100s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1100s # #else /* !G_ENABLE_DEBUG */ 1100s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1100s # * Do not access GValues directly in your code. Instead, use the 1100s # * g_value_get_*() functions 1100s # */ 1100s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1100s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1100s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1100s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1100s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1100s # #endif /* !G_ENABLE_DEBUG */ 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusArgInfo parent_struct; 1100s # gboolean use_gvariant; 1100s # } _ExtendedGDBusArgInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusMethodInfo parent_struct; 1100s # const gchar *signal_name; 1100s # gboolean pass_fdlist; 1100s # } _ExtendedGDBusMethodInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusSignalInfo parent_struct; 1100s # const gchar *signal_name; 1100s # } _ExtendedGDBusSignalInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusPropertyInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # guint use_gvariant : 1; 1100s # guint emits_changed_signal : 1; 1100s # } _ExtendedGDBusPropertyInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusInterfaceInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # } _ExtendedGDBusInterfaceInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # const _ExtendedGDBusPropertyInfo *info; 1100s # guint prop_id; 1100s # GValue orig_value; /* the value before the change */ 1100s # } ChangedProperty; 1100s # 1100s # static void 1100s # _changed_property_free (ChangedProperty *data) 1100s # { 1100s # g_value_unset (&data->orig_value); 1100s # g_free (data); 1100s # } 1100s # 1100s # static gboolean 1100s # _g_strv_equal0 (gchar **a, gchar **b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # guint n; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # if (g_strv_length (a) != g_strv_length (b)) 1100s # goto out; 1100s # for (n = 0; a[n] != NULL; n++) 1100s # if (g_strcmp0 (a[n], b[n]) != 0) 1100s # goto out; 1100s # ret = TRUE; 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _g_variant_equal0 (GVariant *a, GVariant *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # ret = g_variant_equal (a, b); 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # G_GNUC_UNUSED static gboolean 1100s # _g_value_equal (const GValue *a, const GValue *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1100s # switch (G_VALUE_TYPE (a)) 1100s # { 1100s # case G_TYPE_BOOLEAN: 1100s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1100s # break; 1100s # case G_TYPE_UCHAR: 1100s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1100s # break; 1100s # case G_TYPE_INT: 1100s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1100s # break; 1100s # case G_TYPE_UINT: 1100s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1100s # break; 1100s # case G_TYPE_INT64: 1100s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1100s # break; 1100s # case G_TYPE_UINT64: 1100s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1100s # break; 1100s # case G_TYPE_DOUBLE: 1100s # { 1100s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1100s # gdouble da = g_value_get_double (a); 1100s # gdouble db = g_value_get_double (b); 1100s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1100s # } 1100s # break; 1100s # case G_TYPE_STRING: 1100s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1100s # break; 1100s # case G_TYPE_VARIANT: 1100s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1100s # break; 1100s # default: 1100s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1100s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1100s # else 1100s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1100s # break; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static void 1100s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1100s # GClosure *closure, 1100s # GValue *return_value G_GNUC_UNUSED, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint G_GNUC_UNUSED, 1100s # void *marshal_data) 1100s # { 1100s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1100s # (void *data1, 1100s # gboolean arg_an_b, 1100s # guchar arg_an_y, 1100s # gint16 arg_an_n, 1100s # guint16 arg_an_q, 1100s # gint arg_an_i, 1100s # guint arg_an_u, 1100s # gint64 arg_an_x, 1100s # guint64 arg_an_t, 1100s # gdouble arg_an_d, 1100s # const gchar *arg_an_s, 1100s # const gchar *arg_an_o, 1100s # const gchar *arg_an_g, 1100s # GVariant *arg_an_h, 1100s # const gchar *arg_an_ay, 1100s # const gchar *const *arg_an_as, 1100s # const gchar *const *arg_an_ao, 1100s # const gchar *const *arg_an_aay, 1100s # GVariant *arg_an_asv, 1100s # void *data2); 1100s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1100s # GCClosure *cc = (GCClosure*) closure; 1100s # void *data1, *data2; 1100s # 1100s # g_return_if_fail (n_param_values == 19); 1100s # 1100s # if (G_CCLOSURE_SWAP_DATA (closure)) 1100s # { 1100s # data1 = closure->data; 1100s # data2 = g_value_peek_pointer (param_values + 0); 1100s # } 1100s # else 1100s # { 1100s # data1 = g_value_peek_pointer (param_values + 0); 1100s # data2 = closure->data; 1100s # } 1100s # 1100s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1100s # (marshal_data ? marshal_data : cc->callback); 1100s # 1100s # callback (data1, 1100s # g_marshal_value_peek_boolean (param_values + 1), 1100s # g_marshal_value_peek_uchar (param_values + 2), 1100s # g_marshal_value_peek_int (param_values + 3), 1100s # g_marshal_value_peek_uint (param_values + 4), 1100s # g_marshal_value_peek_int (param_values + 5), 1100s # g_marshal_value_peek_uint (param_values + 6), 1100s # g_marshal_value_peek_int64 (param_values + 7), 1100s # g_marshal_value_peek_uint64 (param_values + 8), 1100s # g_marshal_value_peek_double (param_values + 9), 1100s # g_marshal_value_peek_string (param_values + 10), 1100s # g_marshal_value_peek_string (param_values + 11), 1100s # g_marshal_value_peek_string (param_values + 12), 1100s # g_marshal_value_peek_variant (param_values + 13), 1100s # g_marshal_value_peek_string (param_values + 14), 1100s # g_marshal_value_peek_boxed (param_values + 15), 1100s # g_marshal_value_peek_boxed (param_values + 16), 1100s # g_marshal_value_peek_boxed (param_values + 17), 1100s # g_marshal_value_peek_variant (param_values + 18), 1100s # data2); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.SignalingIface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectSignalingIface 1100s # * @title: OrgProjectSignalingIface 1100s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_b", 1100s # (gchar *) "b", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_y", 1100s # (gchar *) "y", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_n", 1100s # (gchar *) "n", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_q", 1100s # (gchar *) "q", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_i", 1100s # (gchar *) "i", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_u", 1100s # (gchar *) "u", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_x", 1100s # (gchar *) "x", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_t", 1100s # (gchar *) "t", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_d", 1100s # (gchar *) "d", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_s", 1100s # (gchar *) "s", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_o", 1100s # (gchar *) "o", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_g", 1100s # (gchar *) "g", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_h", 1100s # (gchar *) "h", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_ay", 1100s # (gchar *) "ay", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_as", 1100s # (gchar *) "as", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_ao", 1100s # (gchar *) "ao", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_aay", 1100s # (gchar *) "aay", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_asv", 1100s # (gchar *) "a{sv}", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SignalWithManyArgs", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "signal-with-many-args" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.SignalingIface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-signaling-iface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_signaling_iface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectSignalingIface::signal-with-many-args: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_b: Argument. 1100s # * @arg_an_y: Argument. 1100s # * @arg_an_n: Argument. 1100s # * @arg_an_q: Argument. 1100s # * @arg_an_i: Argument. 1100s # * @arg_an_u: Argument. 1100s # * @arg_an_x: Argument. 1100s # * @arg_an_t: Argument. 1100s # * @arg_an_d: Argument. 1100s # * @arg_an_s: Argument. 1100s # * @arg_an_o: Argument. 1100s # * @arg_an_g: Argument. 1100s # * @arg_an_h: Argument. 1100s # * @arg_an_ay: Argument. 1100s # * @arg_an_as: Argument. 1100s # * @arg_an_ao: Argument. 1100s # * @arg_an_aay: Argument. 1100s # * @arg_an_asv: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1100s # g_signal_new ("signal-with-many-args", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1100s # G_TYPE_NONE, 1100s # 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); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_signal_with_many_args: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_b: Argument to pass with the signal. 1100s # * @arg_an_y: Argument to pass with the signal. 1100s # * @arg_an_n: Argument to pass with the signal. 1100s # * @arg_an_q: Argument to pass with the signal. 1100s # * @arg_an_i: Argument to pass with the signal. 1100s # * @arg_an_u: Argument to pass with the signal. 1100s # * @arg_an_x: Argument to pass with the signal. 1100s # * @arg_an_t: Argument to pass with the signal. 1100s # * @arg_an_d: Argument to pass with the signal. 1100s # * @arg_an_s: Argument to pass with the signal. 1100s # * @arg_an_o: Argument to pass with the signal. 1100s # * @arg_an_g: Argument to pass with the signal. 1100s # * @arg_an_h: Argument to pass with the signal. 1100s # * @arg_an_ay: Argument to pass with the signal. 1100s # * @arg_an_as: Argument to pass with the signal. 1100s # * @arg_an_ao: Argument to pass with the signal. 1100s # * @arg_an_aay: Argument to pass with the signal. 1100s # * @arg_an_asv: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SignalWithManyArgs" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_signal_with_many_args ( 1100s # OrgProjectSignalingIface *object, 1100s # gboolean arg_an_b, 1100s # guchar arg_an_y, 1100s # gint16 arg_an_n, 1100s # guint16 arg_an_q, 1100s # gint arg_an_i, 1100s # guint arg_an_u, 1100s # gint64 arg_an_x, 1100s # guint64 arg_an_t, 1100s # gdouble arg_an_d, 1100s # const gchar *arg_an_s, 1100s # const gchar *arg_an_o, 1100s # const gchar *arg_an_g, 1100s # GVariant *arg_an_h, 1100s # const gchar *arg_an_ay, 1100s # const gchar *const *arg_an_as, 1100s # const gchar *const *arg_an_ao, 1100s # const gchar *const *arg_an_aay, 1100s # GVariant *arg_an_asv) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxy: 1100s # * 1100s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1100s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1100s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeleton: 1100s # * 1100s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_signaling_iface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_signaling_iface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_signaling_iface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1100s # { 1100s # _org_project_signaling_iface_skeleton_handle_method_call, 1100s # _org_project_signaling_iface_skeleton_handle_get_property, 1100s # _org_project_signaling_iface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_signaling_iface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1100s # OrgProjectSignalingIface *object, 1100s # gboolean arg_an_b, 1100s # guchar arg_an_y, 1100s # gint16 arg_an_n, 1100s # guint16 arg_an_q, 1100s # gint arg_an_i, 1100s # guint arg_an_u, 1100s # gint64 arg_an_x, 1100s # guint64 arg_an_t, 1100s # gdouble arg_an_d, 1100s # const gchar *arg_an_s, 1100s # const gchar *arg_an_o, 1100s # const gchar *arg_an_g, 1100s # GVariant *arg_an_h, 1100s # const gchar *arg_an_ay, 1100s # const gchar *const *arg_an_as, 1100s # const gchar *const *arg_an_ao, 1100s # const gchar *const *arg_an_aay, 1100s # GVariant *arg_an_asv) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1100s # arg_an_b, 1100s # arg_an_y, 1100s # arg_an_n, 1100s # arg_an_q, 1100s # arg_an_i, 1100s # arg_an_u, 1100s # arg_an_x, 1100s # arg_an_t, 1100s # arg_an_d, 1100s # arg_an_s, 1100s # arg_an_o, 1100s # arg_an_g, 1100s # arg_an_h, 1100s # arg_an_ay, 1100s # arg_an_as, 1100s # arg_an_ao, 1100s # arg_an_aay, 1100s # arg_an_asv)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1100s # } 1100s # Error: 1100s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1100s # gdbus-codegen: /usr/bin/gdbus-codegen 1100s # tmpdir: /tmp/tmpkh12ecsa 1100s # /tmp/tmpkh12ecsa/tmpxtmcubbh.xml: 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkh12ecsa/tmpxtmcubbh.xml', '--output', '-', '--body'] 1100s # Return code: 0 1100s # Output: 1100s # /* 1100s # * This file is generated by gdbus-codegen, do not modify it. 1100s # * 1100s # * The license of this code is the same as for the D-Bus interface description 1100s # * it was derived from. Note that it links to GLib, so must comply with the 1100s # * LGPL linking clauses. 1100s # */ 1100s # 1100s # #ifdef HAVE_CONFIG_H 1100s # # include "config.h" 1100s # #endif 1100s # 1100s # #include 1100s # #ifdef G_OS_UNIX 1100s # # include 1100s # #endif 1100s # 1100s # #ifdef G_ENABLE_DEBUG 1100s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1100s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1100s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1100s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1100s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1100s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1100s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1100s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1100s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1100s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1100s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1100s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1100s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1100s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1100s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1100s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1100s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1100s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1100s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1100s # #else /* !G_ENABLE_DEBUG */ 1100s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1100s # * Do not access GValues directly in your code. Instead, use the 1100s # * g_value_get_*() functions 1100s # */ 1100s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1100s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1100s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1100s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1100s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1100s # #endif /* !G_ENABLE_DEBUG */ 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusArgInfo parent_struct; 1100s # gboolean use_gvariant; 1100s # } _ExtendedGDBusArgInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusMethodInfo parent_struct; 1100s # const gchar *signal_name; 1100s # gboolean pass_fdlist; 1100s # } _ExtendedGDBusMethodInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusSignalInfo parent_struct; 1100s # const gchar *signal_name; 1100s # } _ExtendedGDBusSignalInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusPropertyInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # guint use_gvariant : 1; 1100s # guint emits_changed_signal : 1; 1100s # } _ExtendedGDBusPropertyInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusInterfaceInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # } _ExtendedGDBusInterfaceInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # const _ExtendedGDBusPropertyInfo *info; 1100s # guint prop_id; 1100s # GValue orig_value; /* the value before the change */ 1100s # } ChangedProperty; 1100s # 1100s # static void 1100s # _changed_property_free (ChangedProperty *data) 1100s # { 1100s # g_value_unset (&data->orig_value); 1100s # g_free (data); 1100s # } 1100s # 1100s # static gboolean 1100s # _g_strv_equal0 (gchar **a, gchar **b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # guint n; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # if (g_strv_length (a) != g_strv_length (b)) 1100s # goto out; 1100s # for (n = 0; a[n] != NULL; n++) 1100s # if (g_strcmp0 (a[n], b[n]) != 0) 1100s # goto out; 1100s # ret = TRUE; 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _g_variant_equal0 (GVariant *a, GVariant *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # ret = g_variant_equal (a, b); 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # G_GNUC_UNUSED static gboolean 1100s # _g_value_equal (const GValue *a, const GValue *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1100s # switch (G_VALUE_TYPE (a)) 1100s # { 1100s # case G_TYPE_BOOLEAN: 1100s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1100s # break; 1100s # case G_TYPE_UCHAR: 1100s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1100s # break; 1100s # case G_TYPE_INT: 1100s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1100s # break; 1100s # case G_TYPE_UINT: 1100s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1100s # break; 1100s # case G_TYPE_INT64: 1100s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1100s # break; 1100s # case G_TYPE_UINT64: 1100s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1100s # break; 1100s # case G_TYPE_DOUBLE: 1100s # { 1100s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1100s # gdouble da = g_value_get_double (a); 1100s # gdouble db = g_value_get_double (b); 1100s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1100s # } 1100s # break; 1100s # case G_TYPE_STRING: 1100s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1100s # break; 1100s # case G_TYPE_VARIANT: 1100s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1100s # break; 1100s # default: 1100s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1100s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1100s # else 1100s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1100s # break; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static void 1100s # _g_dbus_codegen_marshal_VOID__INT64 ( 1100s # GClosure *closure, 1100s # GValue *return_value G_GNUC_UNUSED, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint G_GNUC_UNUSED, 1100s # void *marshal_data) 1100s # { 1100s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1100s # (void *data1, 1100s # gint64 arg_an_x, 1100s # void *data2); 1100s # _GDbusCodegenMarshalVoid_Int64Func callback; 1100s # GCClosure *cc = (GCClosure*) closure; 1100s # void *data1, *data2; 1100s # 1100s # g_return_if_fail (n_param_values == 2); 1100s # 1100s # if (G_CCLOSURE_SWAP_DATA (closure)) 1100s # { 1100s # data1 = closure->data; 1100s # data2 = g_value_peek_pointer (param_values + 0); 1100s # } 1100s # else 1100s # { 1100s # data1 = g_value_peek_pointer (param_values + 0); 1100s # data2 = closure->data; 1100s # } 1100s # 1100s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1100s # (marshal_data ? marshal_data : cc->callback); 1100s # 1100s # callback (data1, 1100s # g_marshal_value_peek_int64 (param_values + 1), 1100s # data2); 1100s # } 1100s # 1100s # static void 1100s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1100s # GClosure *closure, 1100s # GValue *return_value G_GNUC_UNUSED, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint G_GNUC_UNUSED, 1100s # void *marshal_data) 1100s # { 1100s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1100s # (void *data1, 1100s # guint64 arg_an_t, 1100s # void *data2); 1100s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1100s # GCClosure *cc = (GCClosure*) closure; 1100s # void *data1, *data2; 1100s # 1100s # g_return_if_fail (n_param_values == 2); 1100s # 1100s # if (G_CCLOSURE_SWAP_DATA (closure)) 1100s # { 1100s # data1 = closure->data; 1100s # data2 = g_value_peek_pointer (param_values + 0); 1100s # } 1100s # else 1100s # { 1100s # data1 = g_value_peek_pointer (param_values + 0); 1100s # data2 = closure->data; 1100s # } 1100s # 1100s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1100s # (marshal_data ? marshal_data : cc->callback); 1100s # 1100s # callback (data1, 1100s # g_marshal_value_peek_uint64 (param_values + 1), 1100s # data2); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.SignalingIface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectSignalingIface 1100s # * @title: OrgProjectSignalingIface 1100s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1100s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "NoArgSignal", 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "no-arg-signal" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_b", 1100s # (gchar *) "b", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalB", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-b" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_y", 1100s # (gchar *) "y", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalY", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-y" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_n", 1100s # (gchar *) "n", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalN", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-n" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_q", 1100s # (gchar *) "q", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalQ", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-q" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_i", 1100s # (gchar *) "i", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalI", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-i" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_u", 1100s # (gchar *) "u", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalU", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-u" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_x", 1100s # (gchar *) "x", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalX", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-x" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_t", 1100s # (gchar *) "t", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalT", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-t" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_d", 1100s # (gchar *) "d", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalD", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-d" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_s", 1100s # (gchar *) "s", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalS", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-s" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_o", 1100s # (gchar *) "o", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalO", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-o" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_g", 1100s # (gchar *) "g", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalG", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-g" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_h", 1100s # (gchar *) "h", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalH", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-h" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_ay", 1100s # (gchar *) "ay", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalAY", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-ay" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_as", 1100s # (gchar *) "as", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalAS", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-as" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_ao", 1100s # (gchar *) "ao", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalAO", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-ao" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_aay", 1100s # (gchar *) "aay", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalAAY", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-aay" 1100s # }; 1100s # 1100s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "an_asv", 1100s # (gchar *) "a{sv}", 1100s # NULL 1100s # }, 1100s # FALSE 1100s # }; 1100s # 1100s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SingleArgSignalASV", 1100s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1100s # NULL 1100s # }, 1100s # "single-arg-signal-asv" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1100s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.SignalingIface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-signaling-iface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_signaling_iface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VOID (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__UCHAR (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__INT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__UINT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__INT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__UINT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__DOUBLE (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__STRING (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__STRING (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__STRING (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VARIANT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__STRING (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__BOXED (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__BOXED (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__BOXED (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VARIANT (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1100s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1100s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1100s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1100s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1100s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1100s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1100s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1100s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1100s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1100s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1100s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1100s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1100s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1100s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1100s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1100s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1100s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1100s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectSignalingIface::no-arg-signal: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1100s # g_signal_new ("no-arg-signal", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1100s # G_TYPE_NONE, 1100s # 0); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-b: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_b: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1100s # g_signal_new ("single-arg-signal-b", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_BOOLEAN); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-y: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_y: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1100s # g_signal_new ("single-arg-signal-y", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_UCHAR); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-n: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_n: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1100s # g_signal_new ("single-arg-signal-n", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_INT); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-q: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_q: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1100s # g_signal_new ("single-arg-signal-q", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_UINT); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-i: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_i: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1100s # g_signal_new ("single-arg-signal-i", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_INT); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-u: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_u: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1100s # g_signal_new ("single-arg-signal-u", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_UINT); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-x: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_x: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1100s # g_signal_new ("single-arg-signal-x", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_INT64); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-t: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_t: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1100s # g_signal_new ("single-arg-signal-t", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_UINT64); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-d: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_d: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1100s # g_signal_new ("single-arg-signal-d", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_DOUBLE); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-s: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_s: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1100s # g_signal_new ("single-arg-signal-s", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRING); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-o: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_o: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1100s # g_signal_new ("single-arg-signal-o", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRING); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-g: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_g: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1100s # g_signal_new ("single-arg-signal-g", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRING); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-h: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_h: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1100s # g_signal_new ("single-arg-signal-h", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_VARIANT); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-ay: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_ay: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1100s # g_signal_new ("single-arg-signal-ay", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRING); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-as: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_as: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1100s # g_signal_new ("single-arg-signal-as", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRV); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-ao: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_ao: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1100s # g_signal_new ("single-arg-signal-ao", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRV); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-aay: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_aay: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1100s # g_signal_new ("single-arg-signal-aay", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_STRV); 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface::single-arg-signal-asv: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_asv: Argument. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1100s # g_signal_new ("single-arg-signal-asv", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1100s # G_TYPE_NONE, 1100s # 1, G_TYPE_VARIANT); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_no_arg_signal: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * 1100s # * Emits the "NoArgSignal" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_no_arg_signal ( 1100s # OrgProjectSignalingIface *object) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_b: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_b: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalB" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_b ( 1100s # OrgProjectSignalingIface *object, 1100s # gboolean arg_an_b) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_y: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_y: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalY" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_y ( 1100s # OrgProjectSignalingIface *object, 1100s # guchar arg_an_y) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_n: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_n: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalN" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_n ( 1100s # OrgProjectSignalingIface *object, 1100s # gint16 arg_an_n) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_q: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_q: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalQ" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_q ( 1100s # OrgProjectSignalingIface *object, 1100s # guint16 arg_an_q) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_i: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_i: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalI" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_i ( 1100s # OrgProjectSignalingIface *object, 1100s # gint arg_an_i) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_u: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_u: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalU" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_u ( 1100s # OrgProjectSignalingIface *object, 1100s # guint arg_an_u) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_x: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_x: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalX" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_x ( 1100s # OrgProjectSignalingIface *object, 1100s # gint64 arg_an_x) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_t: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_t: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalT" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_t ( 1100s # OrgProjectSignalingIface *object, 1100s # guint64 arg_an_t) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_d: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_d: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalD" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_d ( 1100s # OrgProjectSignalingIface *object, 1100s # gdouble arg_an_d) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_s: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_s: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalS" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_s ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_s) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_o: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_o: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalO" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_o ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_o) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_g: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_g: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalG" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_g ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_g) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_h: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_h: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalH" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_h ( 1100s # OrgProjectSignalingIface *object, 1100s # GVariant *arg_an_h) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_ay: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalAY" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_ay) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_as: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_as: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalAS" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_as ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_as) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_ao: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalAO" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_ao) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_aay: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_aay) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * @arg_an_asv: Argument to pass with the signal. 1100s # * 1100s # * Emits the "SingleArgSignalASV" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1100s # OrgProjectSignalingIface *object, 1100s # GVariant *arg_an_asv) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxy: 1100s # * 1100s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1100s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1100s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeleton: 1100s # * 1100s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_signaling_iface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_signaling_iface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_signaling_iface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1100s # { 1100s # _org_project_signaling_iface_skeleton_handle_method_call, 1100s # _org_project_signaling_iface_skeleton_handle_get_property, 1100s # _org_project_signaling_iface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_signaling_iface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1100s # OrgProjectSignalingIface *object) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1100s # OrgProjectSignalingIface *object, 1100s # gboolean arg_an_b) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1100s # arg_an_b)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1100s # OrgProjectSignalingIface *object, 1100s # guchar arg_an_y) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1100s # arg_an_y)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1100s # OrgProjectSignalingIface *object, 1100s # gint16 arg_an_n) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1100s # arg_an_n)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1100s # OrgProjectSignalingIface *object, 1100s # guint16 arg_an_q) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1100s # arg_an_q)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1100s # OrgProjectSignalingIface *object, 1100s # gint arg_an_i) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1100s # arg_an_i)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1100s # OrgProjectSignalingIface *object, 1100s # guint arg_an_u) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1100s # arg_an_u)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1100s # OrgProjectSignalingIface *object, 1100s # gint64 arg_an_x) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1100s # arg_an_x)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1100s # OrgProjectSignalingIface *object, 1100s # guint64 arg_an_t) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1100s # arg_an_t)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1100s # OrgProjectSignalingIface *object, 1100s # gdouble arg_an_d) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1100s # arg_an_d)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_s) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1100s # arg_an_s)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_o) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1100s # arg_an_o)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_g) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1100s # arg_an_g)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1100s # OrgProjectSignalingIface *object, 1100s # GVariant *arg_an_h) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1100s # arg_an_h)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *arg_an_ay) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1100s # arg_an_ay)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_as) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1100s # arg_an_as)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_ao) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1100s # arg_an_ao)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1100s # OrgProjectSignalingIface *object, 1100s # const gchar *const *arg_an_aay) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1100s # arg_an_aay)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1100s # OrgProjectSignalingIface *object, 1100s # GVariant *arg_an_asv) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1100s # arg_an_asv)); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1100s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1100s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1100s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1100s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1100s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1100s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1100s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1100s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1100s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1100s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1100s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1100s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1100s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1100s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1100s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1100s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1100s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1100s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1100s # } 1100s # Error: 1100s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1100s # gdbus-codegen: /usr/bin/gdbus-codegen 1100s # tmpdir: /tmp/tmpbbut1yv5 1100s # /tmp/tmpbbut1yv5/tmpjhufme_t.xml: 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbbut1yv5/tmpjhufme_t.xml', '--output', '-', '--body'] 1100s # Return code: 0 1100s # Output: 1100s # /* 1100s # * This file is generated by gdbus-codegen, do not modify it. 1100s # * 1100s # * The license of this code is the same as for the D-Bus interface description 1100s # * it was derived from. Note that it links to GLib, so must comply with the 1100s # * LGPL linking clauses. 1100s # */ 1100s # 1100s # #ifdef HAVE_CONFIG_H 1100s # # include "config.h" 1100s # #endif 1100s # 1100s # #include 1100s # #ifdef G_OS_UNIX 1100s # # include 1100s # #endif 1100s # 1100s # #ifdef G_ENABLE_DEBUG 1100s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1100s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1100s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1100s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1100s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1100s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1100s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1100s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1100s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1100s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1100s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1100s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1100s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1100s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1100s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1100s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1100s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1100s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1100s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1100s # #else /* !G_ENABLE_DEBUG */ 1100s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1100s # * Do not access GValues directly in your code. Instead, use the 1100s # * g_value_get_*() functions 1100s # */ 1100s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1100s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1100s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1100s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1100s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1100s # #endif /* !G_ENABLE_DEBUG */ 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusArgInfo parent_struct; 1100s # gboolean use_gvariant; 1100s # } _ExtendedGDBusArgInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusMethodInfo parent_struct; 1100s # const gchar *signal_name; 1100s # gboolean pass_fdlist; 1100s # } _ExtendedGDBusMethodInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusSignalInfo parent_struct; 1100s # const gchar *signal_name; 1100s # } _ExtendedGDBusSignalInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusPropertyInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # guint use_gvariant : 1; 1100s # guint emits_changed_signal : 1; 1100s # } _ExtendedGDBusPropertyInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusInterfaceInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # } _ExtendedGDBusInterfaceInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # const _ExtendedGDBusPropertyInfo *info; 1100s # guint prop_id; 1100s # GValue orig_value; /* the value before the change */ 1100s # } ChangedProperty; 1100s # 1100s # static void 1100s # _changed_property_free (ChangedProperty *data) 1100s # { 1100s # g_value_unset (&data->orig_value); 1100s # g_free (data); 1100s # } 1100s # 1100s # static gboolean 1100s # _g_strv_equal0 (gchar **a, gchar **b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # guint n; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # if (g_strv_length (a) != g_strv_length (b)) 1100s # goto out; 1100s # for (n = 0; a[n] != NULL; n++) 1100s # if (g_strcmp0 (a[n], b[n]) != 0) 1100s # goto out; 1100s # ret = TRUE; 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _g_variant_equal0 (GVariant *a, GVariant *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # ret = g_variant_equal (a, b); 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # G_GNUC_UNUSED static gboolean 1100s # _g_value_equal (const GValue *a, const GValue *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1100s # switch (G_VALUE_TYPE (a)) 1100s # { 1100s # case G_TYPE_BOOLEAN: 1100s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1100s # break; 1100s # case G_TYPE_UCHAR: 1100s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1100s # break; 1100s # case G_TYPE_INT: 1100s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1100s # break; 1100s # case G_TYPE_UINT: 1100s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1100s # break; 1100s # case G_TYPE_INT64: 1100s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1100s # break; 1100s # case G_TYPE_UINT64: 1100s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1100s # break; 1100s # case G_TYPE_DOUBLE: 1100s # { 1100s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1100s # gdouble da = g_value_get_double (a); 1100s # gdouble db = g_value_get_double (b); 1100s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1100s # } 1100s # break; 1100s # case G_TYPE_STRING: 1100s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1100s # break; 1100s # case G_TYPE_VARIANT: 1100s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1100s # break; 1100s # default: 1100s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1100s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1100s # else 1100s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1100s # break; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.UsefulInterface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectUsefulInterface 1100s # * @title: OrgProjectUsefulInterface 1100s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SimpleSignal", 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "simple-signal" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.UsefulInterface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-useful-interface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_useful_interface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_useful_interface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_useful_interface_signal_marshal_simple_signal ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VOID (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1100s # */ 1100s # 1100s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectUsefulInterface::simple-signal: 1100s # * @object: A #OrgProjectUsefulInterface. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1100s # g_signal_new ("simple-signal", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1100s # NULL, 1100s # NULL, 1100s # org_project_useful_interface_signal_marshal_simple_signal, 1100s # G_TYPE_NONE, 1100s # 0); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_emit_simple_signal: 1100s # * @object: A #OrgProjectUsefulInterface. 1100s # * 1100s # * Emits the "SimpleSignal" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_useful_interface_emit_simple_signal ( 1100s # OrgProjectUsefulInterface *object) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterfaceProxy: 1100s # * 1100s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectUsefulInterfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_useful_interface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1100s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1100s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_useful_interface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # g_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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectUsefulInterface * 1100s # org_project_useful_interface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectUsefulInterface * 1100s # org_project_useful_interface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_useful_interface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # g_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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectUsefulInterface * 1100s # org_project_useful_interface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectUsefulInterface * 1100s # org_project_useful_interface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterfaceSkeleton: 1100s # * 1100s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectUsefulInterfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_useful_interface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_useful_interface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_useful_interface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1100s # { 1100s # _org_project_useful_interface_skeleton_handle_method_call, 1100s # _org_project_useful_interface_skeleton_handle_get_property, 1100s # _org_project_useful_interface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_useful_interface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_useful_interface_on_signal_simple_signal ( 1100s # OrgProjectUsefulInterface *object) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_useful_interface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1100s # { 1100s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1100s # } 1100s # 1100s # /** 1100s # * org_project_useful_interface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectUsefulInterface * 1100s # org_project_useful_interface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.OtherIface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectOtherIface 1100s # * @title: OrgProjectOtherIface 1100s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.OtherIface ---- */ 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SimpleSignal", 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "simple-signal" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.OtherIface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-other-iface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_other_iface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_other_iface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_other_iface_signal_marshal_simple_signal ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VOID (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectOtherIface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherIfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.OtherIface. 1100s # */ 1100s # 1100s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectOtherIface::simple-signal: 1100s # * @object: A #OrgProjectOtherIface. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1100s # g_signal_new ("simple-signal", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1100s # NULL, 1100s # NULL, 1100s # org_project_other_iface_signal_marshal_simple_signal, 1100s # G_TYPE_NONE, 1100s # 0); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_emit_simple_signal: 1100s # * @object: A #OrgProjectOtherIface. 1100s # * 1100s # * Emits the "SimpleSignal" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_other_iface_emit_simple_signal ( 1100s # OrgProjectOtherIface *object) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectOtherIfaceProxy: 1100s # * 1100s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherIfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectOtherIfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectOtherIfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_other_iface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1100s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1100s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_other_iface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherIface * 1100s # org_project_other_iface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherIface * 1100s # org_project_other_iface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_other_iface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherIface * 1100s # org_project_other_iface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherIface * 1100s # org_project_other_iface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectOtherIfaceSkeleton: 1100s # * 1100s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherIfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectOtherIfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_other_iface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_other_iface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_other_iface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1100s # { 1100s # _org_project_other_iface_skeleton_handle_method_call, 1100s # _org_project_other_iface_skeleton_handle_get_property, 1100s # _org_project_other_iface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_other_iface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_other_iface_on_signal_simple_signal ( 1100s # OrgProjectOtherIface *object) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_other_iface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1100s # { 1100s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_iface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectOtherIface * 1100s # org_project_other_iface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1100s # } 1100s # Error: 1100s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1100s # gdbus-codegen: /usr/bin/gdbus-codegen 1100s # tmpdir: /tmp/tmpl5mdwouj 1100s # /tmp/tmpl5mdwouj/tmpzjeahrj1.xml: 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # 1100s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl5mdwouj/tmpzjeahrj1.xml', '--output', '-', '--body'] 1100s # Return code: 0 1100s # Output: 1100s # /* 1100s # * This file is generated by gdbus-codegen, do not modify it. 1100s # * 1100s # * The license of this code is the same as for the D-Bus interface description 1100s # * it was derived from. Note that it links to GLib, so must comply with the 1100s # * LGPL linking clauses. 1100s # */ 1100s # 1100s # #ifdef HAVE_CONFIG_H 1100s # # include "config.h" 1100s # #endif 1100s # 1100s # #include 1100s # #ifdef G_OS_UNIX 1100s # # include 1100s # #endif 1100s # 1100s # #ifdef G_ENABLE_DEBUG 1100s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1100s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1100s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1100s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1100s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1100s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1100s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1100s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1100s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1100s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1100s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1100s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1100s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1100s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1100s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1100s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1100s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1100s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1100s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1100s # #else /* !G_ENABLE_DEBUG */ 1100s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1100s # * Do not access GValues directly in your code. Instead, use the 1100s # * g_value_get_*() functions 1100s # */ 1100s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1100s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1100s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1100s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1100s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1100s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1100s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1100s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1100s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1100s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1100s # #endif /* !G_ENABLE_DEBUG */ 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusArgInfo parent_struct; 1100s # gboolean use_gvariant; 1100s # } _ExtendedGDBusArgInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusMethodInfo parent_struct; 1100s # const gchar *signal_name; 1100s # gboolean pass_fdlist; 1100s # } _ExtendedGDBusMethodInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusSignalInfo parent_struct; 1100s # const gchar *signal_name; 1100s # } _ExtendedGDBusSignalInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusPropertyInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # guint use_gvariant : 1; 1100s # guint emits_changed_signal : 1; 1100s # } _ExtendedGDBusPropertyInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # GDBusInterfaceInfo parent_struct; 1100s # const gchar *hyphen_name; 1100s # } _ExtendedGDBusInterfaceInfo; 1100s # 1100s # typedef struct 1100s # { 1100s # const _ExtendedGDBusPropertyInfo *info; 1100s # guint prop_id; 1100s # GValue orig_value; /* the value before the change */ 1100s # } ChangedProperty; 1100s # 1100s # static void 1100s # _changed_property_free (ChangedProperty *data) 1100s # { 1100s # g_value_unset (&data->orig_value); 1100s # g_free (data); 1100s # } 1100s # 1100s # static gboolean 1100s # _g_strv_equal0 (gchar **a, gchar **b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # guint n; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # if (g_strv_length (a) != g_strv_length (b)) 1100s # goto out; 1100s # for (n = 0; a[n] != NULL; n++) 1100s # if (g_strcmp0 (a[n], b[n]) != 0) 1100s # goto out; 1100s # ret = TRUE; 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _g_variant_equal0 (GVariant *a, GVariant *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # if (a == NULL && b == NULL) 1100s # { 1100s # ret = TRUE; 1100s # goto out; 1100s # } 1100s # if (a == NULL || b == NULL) 1100s # goto out; 1100s # ret = g_variant_equal (a, b); 1100s # out: 1100s # return ret; 1100s # } 1100s # 1100s # G_GNUC_UNUSED static gboolean 1100s # _g_value_equal (const GValue *a, const GValue *b) 1100s # { 1100s # gboolean ret = FALSE; 1100s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1100s # switch (G_VALUE_TYPE (a)) 1100s # { 1100s # case G_TYPE_BOOLEAN: 1100s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1100s # break; 1100s # case G_TYPE_UCHAR: 1100s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1100s # break; 1100s # case G_TYPE_INT: 1100s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1100s # break; 1100s # case G_TYPE_UINT: 1100s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1100s # break; 1100s # case G_TYPE_INT64: 1100s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1100s # break; 1100s # case G_TYPE_UINT64: 1100s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1100s # break; 1100s # case G_TYPE_DOUBLE: 1100s # { 1100s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1100s # gdouble da = g_value_get_double (a); 1100s # gdouble db = g_value_get_double (b); 1100s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1100s # } 1100s # break; 1100s # case G_TYPE_STRING: 1100s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1100s # break; 1100s # case G_TYPE_VARIANT: 1100s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1100s # break; 1100s # default: 1100s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1100s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1100s # else 1100s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1100s # break; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.SignalingIface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectSignalingIface 1100s # * @title: OrgProjectSignalingIface 1100s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SimpleSignal", 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "simple-signal" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.SignalingIface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-signaling-iface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_signaling_iface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_signaling_iface_signal_marshal_simple_signal ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VOID (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectSignalingIface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1100s # */ 1100s # 1100s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectSignalingIface::simple-signal: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1100s # g_signal_new ("simple-signal", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1100s # NULL, 1100s # NULL, 1100s # org_project_signaling_iface_signal_marshal_simple_signal, 1100s # G_TYPE_NONE, 1100s # 0); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_emit_simple_signal: 1100s # * @object: A #OrgProjectSignalingIface. 1100s # * 1100s # * Emits the "SimpleSignal" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_emit_simple_signal ( 1100s # OrgProjectSignalingIface *object) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxy: 1100s # * 1100s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1100s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1100s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_signaling_iface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeleton: 1100s # * 1100s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectSignalingIfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_signaling_iface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_signaling_iface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_signaling_iface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1100s # { 1100s # _org_project_signaling_iface_skeleton_handle_method_call, 1100s # _org_project_signaling_iface_skeleton_handle_get_property, 1100s # _org_project_signaling_iface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_signaling_iface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_signaling_iface_on_signal_simple_signal ( 1100s # OrgProjectSignalingIface *object) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1100s # { 1100s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1100s # } 1100s # 1100s # /** 1100s # * org_project_signaling_iface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectSignalingIface * 1100s # org_project_signaling_iface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ 1100s # * Code for interface org.project.OtherSignalingIface 1100s # * ------------------------------------------------------------------------ 1100s # */ 1100s # 1100s # /** 1100s # * SECTION:OrgProjectOtherSignalingIface 1100s # * @title: OrgProjectOtherSignalingIface 1100s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1100s # * 1100s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1100s # */ 1100s # 1100s # enum 1100s # { 1100s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1100s # }; 1100s # 1100s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1100s # 1100s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1100s # 1100s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "SimpleSignal", 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "simple-signal" 1100s # }; 1100s # 1100s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1100s # { 1100s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1100s # NULL 1100s # }; 1100s # 1100s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1100s # { 1100s # { 1100s # -1, 1100s # (gchar *) "org.project.OtherSignalingIface", 1100s # NULL, 1100s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1100s # NULL, 1100s # NULL 1100s # }, 1100s # "org-project-other-signaling-iface", 1100s # }; 1100s # 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_interface_info: 1100s # * 1100s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1100s # * 1100s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1100s # */ 1100s # GDBusInterfaceInfo * 1100s # org_project_other_signaling_iface_interface_info (void) 1100s # { 1100s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_override_properties: 1100s # * @klass: The class structure for a #GObject derived class. 1100s # * @property_id_begin: The property id to assign to the first overridden property. 1100s # * 1100s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1100s # * The properties are overridden in the order they are defined. 1100s # * 1100s # * Returns: The last property id. 1100s # */ 1100s # guint 1100s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1100s # { 1100s # return property_id_begin - 1; 1100s # } 1100s # 1100s # 1100s # inline static void 1100s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1100s # GClosure *closure, 1100s # GValue *return_value, 1100s # unsigned int n_param_values, 1100s # const GValue *param_values, 1100s # void *invocation_hint, 1100s # void *marshal_data) 1100s # { 1100s # g_cclosure_marshal_VOID__VOID (closure, 1100s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1100s # } 1100s # 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIface: 1100s # * 1100s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIfaceIface: 1100s # * @parent_iface: The parent interface. 1100s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1100s # * 1100s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1100s # */ 1100s # 1100s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1100s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1100s # { 1100s # /* GObject signals for received D-Bus signals: */ 1100s # /** 1100s # * OrgProjectOtherSignalingIface::simple-signal: 1100s # * @object: A #OrgProjectOtherSignalingIface. 1100s # * 1100s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1100s # * 1100s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1100s # */ 1100s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1100s # g_signal_new ("simple-signal", 1100s # G_TYPE_FROM_INTERFACE (iface), 1100s # G_SIGNAL_RUN_LAST, 1100s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1100s # NULL, 1100s # NULL, 1100s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1100s # G_TYPE_NONE, 1100s # 0); 1100s # 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_emit_simple_signal: 1100s # * @object: A #OrgProjectOtherSignalingIface. 1100s # * 1100s # * Emits the "SimpleSignal" D-Bus signal. 1100s # */ 1100s # void 1100s # org_project_other_signaling_iface_emit_simple_signal ( 1100s # OrgProjectOtherSignalingIface *object) 1100s # { 1100s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1100s # } 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIfaceProxy: 1100s # * 1100s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIfaceProxyClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1100s # */ 1100s # 1100s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1100s # { 1100s # GData *qdata; 1100s # }; 1100s # 1100s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1100s # { 1100s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1100s # g_datalist_clear (&proxy->priv->qdata); 1100s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1100s # guint prop_id G_GNUC_UNUSED, 1100s # const GValue *value G_GNUC_UNUSED, 1100s # GParamSpec *pspec G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1100s # const gchar *sender_name G_GNUC_UNUSED, 1100s # const gchar *signal_name, 1100s # GVariant *parameters) 1100s # { 1100s # _ExtendedGDBusSignalInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # gsize n; 1100s # guint signal_id; 1100s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1100s # if (info == NULL) 1100s # return; 1100s # num_params = g_variant_n_children (parameters); 1100s # paramv = g_new0 (GValue, num_params + 1); 1100s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[0], proxy); 1100s # g_variant_iter_init (&iter, parameters); 1100s # n = 1; 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1100s # g_signal_emitv (paramv, signal_id, 0, NULL); 1100s # for (n = 0; n < num_params + 1; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1100s # GVariant *changed_properties, 1100s # const gchar *const *invalidated_properties) 1100s # { 1100s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1100s # guint n; 1100s # const gchar *key; 1100s # GVariantIter *iter; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # g_variant_get (changed_properties, "a{sv}", &iter); 1100s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1100s # g_datalist_remove_data (&proxy->priv->qdata, key); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # g_variant_iter_free (iter); 1100s # for (n = 0; invalidated_properties[n] != NULL; n++) 1100s # { 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1100s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1100s # if (info != NULL) 1100s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1100s # } 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1100s # #else 1100s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1100s # #endif 1100s # 1100s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusProxyClass *proxy_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1100s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1100s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1100s # 1100s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1100s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1100s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_other_signaling_iface_proxy_new ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherSignalingIface * 1100s # org_project_other_signaling_iface_proxy_new_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new_sync: 1100s # * @connection: A #GDBusConnection. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherSignalingIface * 1100s # org_project_other_signaling_iface_proxy_new_sync ( 1100s # GDBusConnection *connection, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new_for_bus: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1100s # * @user_data: User data to pass to @callback. 1100s # * 1100s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1100s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1100s # * 1100s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1100s # */ 1100s # void 1100s # org_project_other_signaling_iface_proxy_new_for_bus ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GAsyncReadyCallback callback, 1100s # gpointer user_data) 1100s # { 1100s # 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); 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1100s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherSignalingIface * 1100s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1100s # GAsyncResult *res, 1100s # GError **error) 1100s # { 1100s # GObject *ret; 1100s # GObject *source_object; 1100s # source_object = g_async_result_get_source_object (res); 1100s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1100s # g_object_unref (source_object); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1100s # * @bus_type: A #GBusType. 1100s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1100s # * @name: A bus name (well-known or unique). 1100s # * @object_path: An object path. 1100s # * @cancellable: (nullable): A #GCancellable or %NULL. 1100s # * @error: Return location for error or %NULL 1100s # * 1100s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1100s # * 1100s # * The calling thread is blocked until a reply is received. 1100s # * 1100s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1100s # */ 1100s # OrgProjectOtherSignalingIface * 1100s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1100s # GBusType bus_type, 1100s # GDBusProxyFlags flags, 1100s # const gchar *name, 1100s # const gchar *object_path, 1100s # GCancellable *cancellable, 1100s # GError **error) 1100s # { 1100s # GInitable *ret; 1100s # 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); 1100s # if (ret != NULL) 1100s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1100s # else 1100s # return NULL; 1100s # } 1100s # 1100s # 1100s # /* ------------------------------------------------------------------------ */ 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIfaceSkeleton: 1100s # * 1100s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1100s # */ 1100s # 1100s # /** 1100s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1100s # * @parent_class: The parent class. 1100s # * 1100s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1100s # */ 1100s # 1100s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1100s # { 1100s # GValue *properties; 1100s # GList *changed_properties; 1100s # GSource *changed_properties_idle_source; 1100s # GMainContext *context; 1100s # GMutex lock; 1100s # }; 1100s # 1100s # static void 1100s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name, 1100s # const gchar *method_name, 1100s # GVariant *parameters, 1100s # GDBusMethodInvocation *invocation, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1100s # _ExtendedGDBusMethodInfo *info; 1100s # GVariantIter iter; 1100s # GVariant *child; 1100s # GValue *paramv; 1100s # gsize num_params; 1100s # guint num_extra; 1100s # gsize n; 1100s # guint signal_id; 1100s # GValue return_value = G_VALUE_INIT; 1100s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1100s # g_assert (info != NULL); 1100s # num_params = g_variant_n_children (parameters); 1100s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1100s # n = 0; 1100s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1100s # g_value_set_object (¶mv[n++], skeleton); 1100s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1100s # g_value_set_object (¶mv[n++], invocation); 1100s # if (info->pass_fdlist) 1100s # { 1100s # #ifdef G_OS_UNIX 1100s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1100s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1100s # #else 1100s # g_assert_not_reached (); 1100s # #endif 1100s # } 1100s # g_variant_iter_init (&iter, parameters); 1100s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1100s # { 1100s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1100s # if (arg_info->use_gvariant) 1100s # { 1100s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1100s # g_value_set_variant (¶mv[n], child); 1100s # n++; 1100s # } 1100s # else 1100s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1100s # g_variant_unref (child); 1100s # } 1100s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1100s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1100s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1100s # if (!g_value_get_boolean (&return_value)) 1100s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1100s # g_value_unset (&return_value); 1100s # for (n = 0; n < num_params + num_extra; n++) 1100s # g_value_unset (¶mv[n]); 1100s # g_free (paramv); 1100s # } 1100s # 1100s # static GVariant * 1100s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # GVariant *ret; 1100s # ret = NULL; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # g_value_init (&value, pspec->value_type); 1100s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1100s # g_value_unset (&value); 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static gboolean 1100s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1100s # GDBusConnection *connection G_GNUC_UNUSED, 1100s # const gchar *sender G_GNUC_UNUSED, 1100s # const gchar *object_path G_GNUC_UNUSED, 1100s # const gchar *interface_name G_GNUC_UNUSED, 1100s # const gchar *property_name, 1100s # GVariant *variant, 1100s # GError **error, 1100s # gpointer user_data) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1100s # GValue value = G_VALUE_INIT; 1100s # GParamSpec *pspec; 1100s # _ExtendedGDBusPropertyInfo *info; 1100s # gboolean ret; 1100s # ret = FALSE; 1100s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1100s # g_assert (info != NULL); 1100s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1100s # if (pspec == NULL) 1100s # { 1100s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1100s # } 1100s # else 1100s # { 1100s # if (info->use_gvariant) 1100s # g_value_set_variant (&value, variant); 1100s # else 1100s # g_dbus_gvariant_to_gvalue (variant, &value); 1100s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1100s # g_value_unset (&value); 1100s # ret = TRUE; 1100s # } 1100s # return ret; 1100s # } 1100s # 1100s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1100s # { 1100s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1100s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1100s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1100s # {NULL} 1100s # }; 1100s # 1100s # static GDBusInterfaceInfo * 1100s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return org_project_other_signaling_iface_interface_info (); 1100s # } 1100s # 1100s # static GDBusInterfaceVTable * 1100s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1100s # { 1100s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1100s # } 1100s # 1100s # static GVariant * 1100s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1100s # 1100s # GVariantBuilder builder; 1100s # guint n; 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1100s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #else 1100s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1100s # #endif 1100s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1100s # goto out; 1100s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1100s # { 1100s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1100s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1100s # { 1100s # GVariant *value; 1100s # 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); 1100s # if (value != NULL) 1100s # { 1100s # g_variant_take_ref (value); 1100s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1100s # g_variant_unref (value); 1100s # } 1100s # } 1100s # } 1100s # out: 1100s # return g_variant_builder_end (&builder); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1100s # { 1100s # } 1100s # 1100s # static void 1100s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1100s # OrgProjectOtherSignalingIface *object) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1100s # 1100s # GList *connections, *l; 1100s # GVariant *signal_variant; 1100s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1100s # 1100s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1100s # for (l = connections; l != NULL; l = l->next) 1100s # { 1100s # GDBusConnection *connection = l->data; 1100s # g_dbus_connection_emit_signal (connection, 1100s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1100s # signal_variant, NULL); 1100s # } 1100s # g_variant_unref (signal_variant); 1100s # g_list_free_full (connections, g_object_unref); 1100s # } 1100s # 1100s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #else 1100s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1100s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1100s # 1100s # #endif 1100s # static void 1100s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1100s # { 1100s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1100s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1100s # if (skeleton->priv->changed_properties_idle_source != NULL) 1100s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1100s # g_main_context_unref (skeleton->priv->context); 1100s # g_mutex_clear (&skeleton->priv->lock); 1100s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1100s # { 1100s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1100s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1100s # #else 1100s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1100s # #endif 1100s # 1100s # g_mutex_init (&skeleton->priv->lock); 1100s # skeleton->priv->context = g_main_context_ref_thread_default (); 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1100s # { 1100s # GObjectClass *gobject_class; 1100s # GDBusInterfaceSkeletonClass *skeleton_class; 1100s # 1100s # gobject_class = G_OBJECT_CLASS (klass); 1100s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1100s # 1100s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1100s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1100s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1100s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1100s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1100s # 1100s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1100s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1100s # #endif 1100s # } 1100s # 1100s # static void 1100s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1100s # { 1100s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1100s # } 1100s # 1100s # /** 1100s # * org_project_other_signaling_iface_skeleton_new: 1100s # * 1100s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1100s # * 1100s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1100s # */ 1100s # OrgProjectOtherSignalingIface * 1100s # org_project_other_signaling_iface_skeleton_new (void) 1100s # { 1100s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1100s # } 1100s # Error: 1101s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpcdbk1aaa 1101s # /tmp/tmpcdbk1aaa/tmp4j569uu7.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmp4j569uu7.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_b", 1101s # (gchar *) "b", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalB", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-b" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-b: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_b: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1101s # g_signal_new ("single-arg-signal-b", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_BOOLEAN); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_b: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_b: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalB" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_b ( 1101s # OrgProjectSignalingIface *object, 1101s # gboolean arg_arg_b) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1101s # OrgProjectSignalingIface *object, 1101s # gboolean arg_arg_b) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1101s # arg_arg_b)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpx_g9lbnj.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpx_g9lbnj.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_y", 1101s # (gchar *) "y", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalY", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-y" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__UCHAR (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-y: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_y: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1101s # g_signal_new ("single-arg-signal-y", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_UCHAR); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_y: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_y: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalY" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_y ( 1101s # OrgProjectSignalingIface *object, 1101s # guchar arg_arg_y) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1101s # OrgProjectSignalingIface *object, 1101s # guchar arg_arg_y) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1101s # arg_arg_y)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpmozs_jbo.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpmozs_jbo.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_n", 1101s # (gchar *) "n", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalN", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-n" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__INT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-n: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_n: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1101s # g_signal_new ("single-arg-signal-n", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_INT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_n: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_n: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalN" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_n ( 1101s # OrgProjectSignalingIface *object, 1101s # gint16 arg_arg_n) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1101s # OrgProjectSignalingIface *object, 1101s # gint16 arg_arg_n) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1101s # arg_arg_n)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpyb004nzk.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpyb004nzk.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_q", 1101s # (gchar *) "q", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalQ", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-q" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__UINT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-q: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_q: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1101s # g_signal_new ("single-arg-signal-q", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_UINT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_q: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_q: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalQ" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_q ( 1101s # OrgProjectSignalingIface *object, 1101s # guint16 arg_arg_q) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1101s # OrgProjectSignalingIface *object, 1101s # guint16 arg_arg_q) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1101s # arg_arg_q)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmp45jmuwka.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmp45jmuwka.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_i", 1101s # (gchar *) "i", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalI", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-i" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__INT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-i: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_i: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1101s # g_signal_new ("single-arg-signal-i", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_INT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_i: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_i: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalI" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_i ( 1101s # OrgProjectSignalingIface *object, 1101s # gint arg_arg_i) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1101s # OrgProjectSignalingIface *object, 1101s # gint arg_arg_i) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1101s # arg_arg_i)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmp98q_isow.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmp98q_isow.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_u", 1101s # (gchar *) "u", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalU", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-u" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__UINT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-u: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_u: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1101s # g_signal_new ("single-arg-signal-u", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_UINT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_u: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_u: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalU" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_u ( 1101s # OrgProjectSignalingIface *object, 1101s # guint arg_arg_u) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1101s # OrgProjectSignalingIface *object, 1101s # guint arg_arg_u) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1101s # arg_arg_u)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmp005az509.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmp005az509.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static void 1101s # _g_dbus_codegen_marshal_VOID__INT64 ( 1101s # GClosure *closure, 1101s # GValue *return_value G_GNUC_UNUSED, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint G_GNUC_UNUSED, 1101s # void *marshal_data) 1101s # { 1101s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1101s # (void *data1, 1101s # gint64 arg_arg_x, 1101s # void *data2); 1101s # _GDbusCodegenMarshalVoid_Int64Func callback; 1101s # GCClosure *cc = (GCClosure*) closure; 1101s # void *data1, *data2; 1101s # 1101s # g_return_if_fail (n_param_values == 2); 1101s # 1101s # if (G_CCLOSURE_SWAP_DATA (closure)) 1101s # { 1101s # data1 = closure->data; 1101s # data2 = g_value_peek_pointer (param_values + 0); 1101s # } 1101s # else 1101s # { 1101s # data1 = g_value_peek_pointer (param_values + 0); 1101s # data2 = closure->data; 1101s # } 1101s # 1101s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1101s # (marshal_data ? marshal_data : cc->callback); 1101s # 1101s # callback (data1, 1101s # g_marshal_value_peek_int64 (param_values + 1), 1101s # data2); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_x", 1101s # (gchar *) "x", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalX", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-x" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-x: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_x: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1101s # g_signal_new ("single-arg-signal-x", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_INT64); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_x: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_x: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalX" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_x ( 1101s # OrgProjectSignalingIface *object, 1101s # gint64 arg_arg_x) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1101s # OrgProjectSignalingIface *object, 1101s # gint64 arg_arg_x) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1101s # arg_arg_x)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpt8q4fdd2.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpt8q4fdd2.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static void 1101s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1101s # GClosure *closure, 1101s # GValue *return_value G_GNUC_UNUSED, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint G_GNUC_UNUSED, 1101s # void *marshal_data) 1101s # { 1101s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1101s # (void *data1, 1101s # guint64 arg_arg_t, 1101s # void *data2); 1101s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1101s # GCClosure *cc = (GCClosure*) closure; 1101s # void *data1, *data2; 1101s # 1101s # g_return_if_fail (n_param_values == 2); 1101s # 1101s # if (G_CCLOSURE_SWAP_DATA (closure)) 1101s # { 1101s # data1 = closure->data; 1101s # data2 = g_value_peek_pointer (param_values + 0); 1101s # } 1101s # else 1101s # { 1101s # data1 = g_value_peek_pointer (param_values + 0); 1101s # data2 = closure->data; 1101s # } 1101s # 1101s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1101s # (marshal_data ? marshal_data : cc->callback); 1101s # 1101s # callback (data1, 1101s # g_marshal_value_peek_uint64 (param_values + 1), 1101s # data2); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_t", 1101s # (gchar *) "t", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalT", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-t" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-t: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_t: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1101s # g_signal_new ("single-arg-signal-t", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_UINT64); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_t: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_t: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalT" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_t ( 1101s # OrgProjectSignalingIface *object, 1101s # guint64 arg_arg_t) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1101s # OrgProjectSignalingIface *object, 1101s # guint64 arg_arg_t) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1101s # arg_arg_t)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpnj8e80lq.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpnj8e80lq.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_d", 1101s # (gchar *) "d", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalD", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-d" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__DOUBLE (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-d: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_d: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1101s # g_signal_new ("single-arg-signal-d", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_DOUBLE); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_d: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_d: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalD" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_d ( 1101s # OrgProjectSignalingIface *object, 1101s # gdouble arg_arg_d) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1101s # OrgProjectSignalingIface *object, 1101s # gdouble arg_arg_d) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1101s # arg_arg_d)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpgny_emvr.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpgny_emvr.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_s", 1101s # (gchar *) "s", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalS", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-s" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__STRING (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-s: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_s: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1101s # g_signal_new ("single-arg-signal-s", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRING); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_s: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_s: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalS" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_s ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_s) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_s) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1101s # arg_arg_s)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpvvqzxfp6.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpvvqzxfp6.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_o", 1101s # (gchar *) "o", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalO", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-o" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__STRING (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-o: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_o: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1101s # g_signal_new ("single-arg-signal-o", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRING); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_o: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_o: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalO" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_o ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_o) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_o) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1101s # arg_arg_o)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpv82jzm_0.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpv82jzm_0.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_g", 1101s # (gchar *) "g", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalG", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-g" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__STRING (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-g: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_g: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1101s # g_signal_new ("single-arg-signal-g", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRING); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_g: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_g: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalG" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_g ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_g) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_g) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1101s # arg_arg_g)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmp9izja_s9.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmp9izja_s9.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_h", 1101s # (gchar *) "h", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalH", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-h" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VARIANT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-h: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_h: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1101s # g_signal_new ("single-arg-signal-h", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_VARIANT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_h: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_h: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalH" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_h ( 1101s # OrgProjectSignalingIface *object, 1101s # GVariant *arg_arg_h) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1101s # OrgProjectSignalingIface *object, 1101s # GVariant *arg_arg_h) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1101s # arg_arg_h)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpua9j0ae1.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpua9j0ae1.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_ay", 1101s # (gchar *) "ay", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalAy", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-ay" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__STRING (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-ay: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_ay: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1101s # g_signal_new ("single-arg-signal-ay", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRING); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_ay: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalAy" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_ay) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *arg_arg_ay) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1101s # arg_arg_ay)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpg1nda_91.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpg1nda_91.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_as", 1101s # (gchar *) "as", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalAs", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-as" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__BOXED (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-as: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_as: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1101s # g_signal_new ("single-arg-signal-as", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRV); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_as: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_as: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalAs" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_as ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_as) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_as) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1101s # arg_arg_as)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpl1oad8nu.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpl1oad8nu.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_ao", 1101s # (gchar *) "ao", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalAo", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-ao" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__BOXED (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-ao: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_ao: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1101s # g_signal_new ("single-arg-signal-ao", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRV); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_ao: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalAo" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_ao) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_ao) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1101s # arg_arg_ao)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpxcw2wdqu.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpxcw2wdqu.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_aay", 1101s # (gchar *) "aay", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalAay", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-aay" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__BOXED (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-aay: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_aay: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1101s # g_signal_new ("single-arg-signal-aay", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_STRV); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_aay: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalAay" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_aay) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1101s # OrgProjectSignalingIface *object, 1101s # const gchar *const *arg_arg_aay) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1101s # arg_arg_aay)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s # 1101s # /tmp/tmpcdbk1aaa/tmpvnpud4y9.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdbk1aaa/tmpvnpud4y9.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "arg_asv", 1101s # (gchar *) "a{sv}", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SingleArgSignalAsv", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "single-arg-signal-asv" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VARIANT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::single-arg-signal-asv: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_asv: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1101s # g_signal_new ("single-arg-signal-asv", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1101s # G_TYPE_NONE, 1101s # 1, G_TYPE_VARIANT); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_arg_asv: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1101s # OrgProjectSignalingIface *object, 1101s # GVariant *arg_arg_asv) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1101s # OrgProjectSignalingIface *object, 1101s # GVariant *arg_arg_asv) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1101s # arg_arg_asv)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpl9xgmi_h 1101s # /tmp/tmpl9xgmi_h/tmpe4jd1xiz.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl9xgmi_h/tmpe4jd1xiz.xml', '--output', '-', '--body'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifdef HAVE_CONFIG_H 1101s # # include "config.h" 1101s # #endif 1101s # 1101s # #include 1101s # #ifdef G_OS_UNIX 1101s # # include 1101s # #endif 1101s # 1101s # #ifdef G_ENABLE_DEBUG 1101s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1101s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1101s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1101s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1101s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1101s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1101s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1101s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1101s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1101s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1101s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1101s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1101s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1101s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1101s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1101s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1101s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1101s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1101s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1101s # #else /* !G_ENABLE_DEBUG */ 1101s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1101s # * Do not access GValues directly in your code. Instead, use the 1101s # * g_value_get_*() functions 1101s # */ 1101s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1101s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1101s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1101s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1101s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1101s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1101s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1101s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1101s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1101s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1101s # #endif /* !G_ENABLE_DEBUG */ 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusArgInfo parent_struct; 1101s # gboolean use_gvariant; 1101s # } _ExtendedGDBusArgInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusMethodInfo parent_struct; 1101s # const gchar *signal_name; 1101s # gboolean pass_fdlist; 1101s # } _ExtendedGDBusMethodInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusSignalInfo parent_struct; 1101s # const gchar *signal_name; 1101s # } _ExtendedGDBusSignalInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusPropertyInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # guint use_gvariant : 1; 1101s # guint emits_changed_signal : 1; 1101s # } _ExtendedGDBusPropertyInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # GDBusInterfaceInfo parent_struct; 1101s # const gchar *hyphen_name; 1101s # } _ExtendedGDBusInterfaceInfo; 1101s # 1101s # typedef struct 1101s # { 1101s # const _ExtendedGDBusPropertyInfo *info; 1101s # guint prop_id; 1101s # GValue orig_value; /* the value before the change */ 1101s # } ChangedProperty; 1101s # 1101s # static void 1101s # _changed_property_free (ChangedProperty *data) 1101s # { 1101s # g_value_unset (&data->orig_value); 1101s # g_free (data); 1101s # } 1101s # 1101s # static gboolean 1101s # _g_strv_equal0 (gchar **a, gchar **b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # guint n; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # if (g_strv_length (a) != g_strv_length (b)) 1101s # goto out; 1101s # for (n = 0; a[n] != NULL; n++) 1101s # if (g_strcmp0 (a[n], b[n]) != 0) 1101s # goto out; 1101s # ret = TRUE; 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _g_variant_equal0 (GVariant *a, GVariant *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # if (a == NULL && b == NULL) 1101s # { 1101s # ret = TRUE; 1101s # goto out; 1101s # } 1101s # if (a == NULL || b == NULL) 1101s # goto out; 1101s # ret = g_variant_equal (a, b); 1101s # out: 1101s # return ret; 1101s # } 1101s # 1101s # G_GNUC_UNUSED static gboolean 1101s # _g_value_equal (const GValue *a, const GValue *b) 1101s # { 1101s # gboolean ret = FALSE; 1101s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1101s # switch (G_VALUE_TYPE (a)) 1101s # { 1101s # case G_TYPE_BOOLEAN: 1101s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1101s # break; 1101s # case G_TYPE_UCHAR: 1101s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1101s # break; 1101s # case G_TYPE_INT: 1101s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1101s # break; 1101s # case G_TYPE_UINT: 1101s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1101s # break; 1101s # case G_TYPE_INT64: 1101s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1101s # break; 1101s # case G_TYPE_UINT64: 1101s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1101s # break; 1101s # case G_TYPE_DOUBLE: 1101s # { 1101s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1101s # gdouble da = g_value_get_double (a); 1101s # gdouble db = g_value_get_double (b); 1101s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1101s # } 1101s # break; 1101s # case G_TYPE_STRING: 1101s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1101s # break; 1101s # case G_TYPE_VARIANT: 1101s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1101s # break; 1101s # default: 1101s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1101s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1101s # else 1101s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1101s # break; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static void 1101s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1101s # GClosure *closure, 1101s # GValue *return_value G_GNUC_UNUSED, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint G_GNUC_UNUSED, 1101s # void *marshal_data) 1101s # { 1101s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1101s # (void *data1, 1101s # gboolean arg_an_b, 1101s # guchar arg_an_y, 1101s # gint16 arg_an_n, 1101s # guint16 arg_an_q, 1101s # gint arg_an_i, 1101s # guint arg_an_u, 1101s # gint64 arg_an_x, 1101s # guint64 arg_an_t, 1101s # gdouble arg_an_d, 1101s # const gchar *arg_an_s, 1101s # const gchar *arg_an_o, 1101s # const gchar *arg_an_g, 1101s # GVariant *arg_an_h, 1101s # const gchar *arg_an_ay, 1101s # const gchar *const *arg_an_as, 1101s # const gchar *const *arg_an_ao, 1101s # const gchar *const *arg_an_aay, 1101s # GVariant *arg_an_asv, 1101s # void *data2); 1101s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1101s # GCClosure *cc = (GCClosure*) closure; 1101s # void *data1, *data2; 1101s # 1101s # g_return_if_fail (n_param_values == 19); 1101s # 1101s # if (G_CCLOSURE_SWAP_DATA (closure)) 1101s # { 1101s # data1 = closure->data; 1101s # data2 = g_value_peek_pointer (param_values + 0); 1101s # } 1101s # else 1101s # { 1101s # data1 = g_value_peek_pointer (param_values + 0); 1101s # data2 = closure->data; 1101s # } 1101s # 1101s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1101s # (marshal_data ? marshal_data : cc->callback); 1101s # 1101s # callback (data1, 1101s # g_marshal_value_peek_boolean (param_values + 1), 1101s # g_marshal_value_peek_uchar (param_values + 2), 1101s # g_marshal_value_peek_int (param_values + 3), 1101s # g_marshal_value_peek_uint (param_values + 4), 1101s # g_marshal_value_peek_int (param_values + 5), 1101s # g_marshal_value_peek_uint (param_values + 6), 1101s # g_marshal_value_peek_int64 (param_values + 7), 1101s # g_marshal_value_peek_uint64 (param_values + 8), 1101s # g_marshal_value_peek_double (param_values + 9), 1101s # g_marshal_value_peek_string (param_values + 10), 1101s # g_marshal_value_peek_string (param_values + 11), 1101s # g_marshal_value_peek_string (param_values + 12), 1101s # g_marshal_value_peek_variant (param_values + 13), 1101s # g_marshal_value_peek_string (param_values + 14), 1101s # g_marshal_value_peek_boxed (param_values + 15), 1101s # g_marshal_value_peek_boxed (param_values + 16), 1101s # g_marshal_value_peek_boxed (param_values + 17), 1101s # g_marshal_value_peek_variant (param_values + 18), 1101s # data2); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ 1101s # * Code for interface org.project.SignalingIface 1101s # * ------------------------------------------------------------------------ 1101s # */ 1101s # 1101s # /** 1101s # * SECTION:OrgProjectSignalingIface 1101s # * @title: OrgProjectSignalingIface 1101s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1101s # * 1101s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1101s # */ 1101s # 1101s # enum 1101s # { 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1101s # }; 1101s # 1101s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1101s # 1101s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SimpleSignal", 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "simple-signal" 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_b", 1101s # (gchar *) "b", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_y", 1101s # (gchar *) "y", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_n", 1101s # (gchar *) "n", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_q", 1101s # (gchar *) "q", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_i", 1101s # (gchar *) "i", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_u", 1101s # (gchar *) "u", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_x", 1101s # (gchar *) "x", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_t", 1101s # (gchar *) "t", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_d", 1101s # (gchar *) "d", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_s", 1101s # (gchar *) "s", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_o", 1101s # (gchar *) "o", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_g", 1101s # (gchar *) "g", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_h", 1101s # (gchar *) "h", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_ay", 1101s # (gchar *) "ay", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_as", 1101s # (gchar *) "as", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_ao", 1101s # (gchar *) "ao", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_aay", 1101s # (gchar *) "aay", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "an_asv", 1101s # (gchar *) "a{sv}", 1101s # NULL 1101s # }, 1101s # FALSE 1101s # }; 1101s # 1101s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "SignalWithManyArgs", 1101s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1101s # NULL 1101s # }, 1101s # "signal-with-many-args" 1101s # }; 1101s # 1101s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1101s # { 1101s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1101s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1101s # NULL 1101s # }; 1101s # 1101s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1101s # { 1101s # { 1101s # -1, 1101s # (gchar *) "org.project.SignalingIface", 1101s # NULL, 1101s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1101s # NULL, 1101s # NULL 1101s # }, 1101s # "org-project-signaling-iface", 1101s # }; 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_interface_info: 1101s # * 1101s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1101s # * 1101s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1101s # */ 1101s # GDBusInterfaceInfo * 1101s # org_project_signaling_iface_interface_info (void) 1101s # { 1101s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_override_properties: 1101s # * @klass: The class structure for a #GObject derived class. 1101s # * @property_id_begin: The property id to assign to the first overridden property. 1101s # * 1101s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1101s # * The properties are overridden in the order they are defined. 1101s # * 1101s # * Returns: The last property id. 1101s # */ 1101s # guint 1101s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1101s # { 1101s # return property_id_begin - 1; 1101s # } 1101s # 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_simple_signal ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # g_cclosure_marshal_VOID__VOID (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # inline static void 1101s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1101s # GClosure *closure, 1101s # GValue *return_value, 1101s # unsigned int n_param_values, 1101s # const GValue *param_values, 1101s # void *invocation_hint, 1101s # void *marshal_data) 1101s # { 1101s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1101s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1101s # } 1101s # 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface: 1101s # * 1101s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceIface: 1101s # * @parent_iface: The parent interface. 1101s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1101s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1101s # * 1101s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1101s # */ 1101s # 1101s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1101s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1101s # 1101s # static void 1101s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # /* GObject signals for received D-Bus signals: */ 1101s # /** 1101s # * OrgProjectSignalingIface::simple-signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1101s # g_signal_new ("simple-signal", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_simple_signal, 1101s # G_TYPE_NONE, 1101s # 0); 1101s # 1101s # /** 1101s # * OrgProjectSignalingIface::signal-with-many-args: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_an_b: Argument. 1101s # * @arg_an_y: Argument. 1101s # * @arg_an_n: Argument. 1101s # * @arg_an_q: Argument. 1101s # * @arg_an_i: Argument. 1101s # * @arg_an_u: Argument. 1101s # * @arg_an_x: Argument. 1101s # * @arg_an_t: Argument. 1101s # * @arg_an_d: Argument. 1101s # * @arg_an_s: Argument. 1101s # * @arg_an_o: Argument. 1101s # * @arg_an_g: Argument. 1101s # * @arg_an_h: Argument. 1101s # * @arg_an_ay: Argument. 1101s # * @arg_an_as: Argument. 1101s # * @arg_an_ao: Argument. 1101s # * @arg_an_aay: Argument. 1101s # * @arg_an_asv: Argument. 1101s # * 1101s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1101s # * 1101s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1101s # */ 1101s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1101s # g_signal_new ("signal-with-many-args", 1101s # G_TYPE_FROM_INTERFACE (iface), 1101s # G_SIGNAL_RUN_LAST, 1101s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1101s # NULL, 1101s # NULL, 1101s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1101s # G_TYPE_NONE, 1101s # 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); 1101s # 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_simple_signal: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * 1101s # * Emits the "SimpleSignal" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_emit_signal_with_many_args: 1101s # * @object: A #OrgProjectSignalingIface. 1101s # * @arg_an_b: Argument to pass with the signal. 1101s # * @arg_an_y: Argument to pass with the signal. 1101s # * @arg_an_n: Argument to pass with the signal. 1101s # * @arg_an_q: Argument to pass with the signal. 1101s # * @arg_an_i: Argument to pass with the signal. 1101s # * @arg_an_u: Argument to pass with the signal. 1101s # * @arg_an_x: Argument to pass with the signal. 1101s # * @arg_an_t: Argument to pass with the signal. 1101s # * @arg_an_d: Argument to pass with the signal. 1101s # * @arg_an_s: Argument to pass with the signal. 1101s # * @arg_an_o: Argument to pass with the signal. 1101s # * @arg_an_g: Argument to pass with the signal. 1101s # * @arg_an_h: Argument to pass with the signal. 1101s # * @arg_an_ay: Argument to pass with the signal. 1101s # * @arg_an_as: Argument to pass with the signal. 1101s # * @arg_an_ao: Argument to pass with the signal. 1101s # * @arg_an_aay: Argument to pass with the signal. 1101s # * @arg_an_asv: Argument to pass with the signal. 1101s # * 1101s # * Emits the "SignalWithManyArgs" D-Bus signal. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_emit_signal_with_many_args ( 1101s # OrgProjectSignalingIface *object, 1101s # gboolean arg_an_b, 1101s # guchar arg_an_y, 1101s # gint16 arg_an_n, 1101s # guint16 arg_an_q, 1101s # gint arg_an_i, 1101s # guint arg_an_u, 1101s # gint64 arg_an_x, 1101s # guint64 arg_an_t, 1101s # gdouble arg_an_d, 1101s # const gchar *arg_an_s, 1101s # const gchar *arg_an_o, 1101s # const gchar *arg_an_g, 1101s # GVariant *arg_an_h, 1101s # const gchar *arg_an_ay, 1101s # const gchar *const *arg_an_as, 1101s # const gchar *const *arg_an_ao, 1101s # const gchar *const *arg_an_aay, 1101s # GVariant *arg_an_asv) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxy: 1101s # * 1101s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceProxyClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceProxy. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceProxyPrivate 1101s # { 1101s # GData *qdata; 1101s # }; 1101s # 1101s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_proxy_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1101s # g_datalist_clear (&proxy->priv->qdata); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1101s # guint prop_id G_GNUC_UNUSED, 1101s # const GValue *value G_GNUC_UNUSED, 1101s # GParamSpec *pspec G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1101s # const gchar *sender_name G_GNUC_UNUSED, 1101s # const gchar *signal_name, 1101s # GVariant *parameters) 1101s # { 1101s # _ExtendedGDBusSignalInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # gsize n; 1101s # guint signal_id; 1101s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1101s # if (info == NULL) 1101s # return; 1101s # num_params = g_variant_n_children (parameters); 1101s # paramv = g_new0 (GValue, num_params + 1); 1101s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[0], proxy); 1101s # g_variant_iter_init (&iter, parameters); 1101s # n = 1; 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_signal_emitv (paramv, signal_id, 0, NULL); 1101s # for (n = 0; n < num_params + 1; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1101s # GVariant *changed_properties, 1101s # const gchar *const *invalidated_properties) 1101s # { 1101s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1101s # guint n; 1101s # const gchar *key; 1101s # GVariantIter *iter; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # g_variant_get (changed_properties, "a{sv}", &iter); 1101s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1101s # g_datalist_remove_data (&proxy->priv->qdata, key); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # g_variant_iter_free (iter); 1101s # for (n = 0; invalidated_properties[n] != NULL; n++) 1101s # { 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1101s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1101s # if (info != NULL) 1101s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1101s # } 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1101s # #else 1101s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1101s # #endif 1101s # 1101s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusProxyClass *proxy_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1101s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1101s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1101s # 1101s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1101s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1101s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_sync: 1101s # * @connection: A #GDBusConnection. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_sync ( 1101s # GDBusConnection *connection, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1101s # * @user_data: User data to pass to @callback. 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1101s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1101s # */ 1101s # void 1101s # org_project_signaling_iface_proxy_new_for_bus ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GAsyncReadyCallback callback, 1101s # gpointer user_data) 1101s # { 1101s # 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); 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1101s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1101s # GAsyncResult *res, 1101s # GError **error) 1101s # { 1101s # GObject *ret; 1101s # GObject *source_object; 1101s # source_object = g_async_result_get_source_object (res); 1101s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1101s # g_object_unref (source_object); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1101s # * @bus_type: A #GBusType. 1101s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1101s # * @name: A bus name (well-known or unique). 1101s # * @object_path: An object path. 1101s # * @cancellable: (nullable): A #GCancellable or %NULL. 1101s # * @error: Return location for error or %NULL 1101s # * 1101s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1101s # * 1101s # * The calling thread is blocked until a reply is received. 1101s # * 1101s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1101s # GBusType bus_type, 1101s # GDBusProxyFlags flags, 1101s # const gchar *name, 1101s # const gchar *object_path, 1101s # GCancellable *cancellable, 1101s # GError **error) 1101s # { 1101s # GInitable *ret; 1101s # 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); 1101s # if (ret != NULL) 1101s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1101s # else 1101s # return NULL; 1101s # } 1101s # 1101s # 1101s # /* ------------------------------------------------------------------------ */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeleton: 1101s # * 1101s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1101s # */ 1101s # 1101s # /** 1101s # * OrgProjectSignalingIfaceSkeletonClass: 1101s # * @parent_class: The parent class. 1101s # * 1101s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1101s # */ 1101s # 1101s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1101s # { 1101s # GValue *properties; 1101s # GList *changed_properties; 1101s # GSource *changed_properties_idle_source; 1101s # GMainContext *context; 1101s # GMutex lock; 1101s # }; 1101s # 1101s # static void 1101s # _org_project_signaling_iface_skeleton_handle_method_call ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name, 1101s # const gchar *method_name, 1101s # GVariant *parameters, 1101s # GDBusMethodInvocation *invocation, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # _ExtendedGDBusMethodInfo *info; 1101s # GVariantIter iter; 1101s # GVariant *child; 1101s # GValue *paramv; 1101s # gsize num_params; 1101s # guint num_extra; 1101s # gsize n; 1101s # guint signal_id; 1101s # GValue return_value = G_VALUE_INIT; 1101s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1101s # g_assert (info != NULL); 1101s # num_params = g_variant_n_children (parameters); 1101s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1101s # n = 0; 1101s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_set_object (¶mv[n++], skeleton); 1101s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1101s # g_value_set_object (¶mv[n++], invocation); 1101s # if (info->pass_fdlist) 1101s # { 1101s # #ifdef G_OS_UNIX 1101s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1101s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1101s # #else 1101s # g_assert_not_reached (); 1101s # #endif 1101s # } 1101s # g_variant_iter_init (&iter, parameters); 1101s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1101s # { 1101s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1101s # if (arg_info->use_gvariant) 1101s # { 1101s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1101s # g_value_set_variant (¶mv[n], child); 1101s # n++; 1101s # } 1101s # else 1101s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1101s # g_variant_unref (child); 1101s # } 1101s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1101s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1101s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1101s # if (!g_value_get_boolean (&return_value)) 1101s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1101s # g_value_unset (&return_value); 1101s # for (n = 0; n < num_params + num_extra; n++) 1101s # g_value_unset (¶mv[n]); 1101s # g_free (paramv); 1101s # } 1101s # 1101s # static GVariant * 1101s # _org_project_signaling_iface_skeleton_handle_get_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # GVariant *ret; 1101s # ret = NULL; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # g_value_init (&value, pspec->value_type); 1101s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1101s # g_value_unset (&value); 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static gboolean 1101s # _org_project_signaling_iface_skeleton_handle_set_property ( 1101s # GDBusConnection *connection G_GNUC_UNUSED, 1101s # const gchar *sender G_GNUC_UNUSED, 1101s # const gchar *object_path G_GNUC_UNUSED, 1101s # const gchar *interface_name G_GNUC_UNUSED, 1101s # const gchar *property_name, 1101s # GVariant *variant, 1101s # GError **error, 1101s # gpointer user_data) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1101s # GValue value = G_VALUE_INIT; 1101s # GParamSpec *pspec; 1101s # _ExtendedGDBusPropertyInfo *info; 1101s # gboolean ret; 1101s # ret = FALSE; 1101s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1101s # g_assert (info != NULL); 1101s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1101s # if (pspec == NULL) 1101s # { 1101s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1101s # } 1101s # else 1101s # { 1101s # if (info->use_gvariant) 1101s # g_value_set_variant (&value, variant); 1101s # else 1101s # g_dbus_gvariant_to_gvalue (variant, &value); 1101s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1101s # g_value_unset (&value); 1101s # ret = TRUE; 1101s # } 1101s # return ret; 1101s # } 1101s # 1101s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1101s # { 1101s # _org_project_signaling_iface_skeleton_handle_method_call, 1101s # _org_project_signaling_iface_skeleton_handle_get_property, 1101s # _org_project_signaling_iface_skeleton_handle_set_property, 1101s # {NULL} 1101s # }; 1101s # 1101s # static GDBusInterfaceInfo * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return org_project_signaling_iface_interface_info (); 1101s # } 1101s # 1101s # static GDBusInterfaceVTable * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1101s # { 1101s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1101s # } 1101s # 1101s # static GVariant * 1101s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1101s # 1101s # GVariantBuilder builder; 1101s # guint n; 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1101s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #else 1101s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1101s # #endif 1101s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1101s # goto out; 1101s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1101s # { 1101s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1101s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1101s # { 1101s # GVariant *value; 1101s # 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); 1101s # if (value != NULL) 1101s # { 1101s # g_variant_take_ref (value); 1101s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1101s # g_variant_unref (value); 1101s # } 1101s # } 1101s # } 1101s # out: 1101s # return g_variant_builder_end (&builder); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1101s # { 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_simple_signal ( 1101s # OrgProjectSignalingIface *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void 1101s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1101s # OrgProjectSignalingIface *object, 1101s # gboolean arg_an_b, 1101s # guchar arg_an_y, 1101s # gint16 arg_an_n, 1101s # guint16 arg_an_q, 1101s # gint arg_an_i, 1101s # guint arg_an_u, 1101s # gint64 arg_an_x, 1101s # guint64 arg_an_t, 1101s # gdouble arg_an_d, 1101s # const gchar *arg_an_s, 1101s # const gchar *arg_an_o, 1101s # const gchar *arg_an_g, 1101s # GVariant *arg_an_h, 1101s # const gchar *arg_an_ay, 1101s # const gchar *const *arg_an_as, 1101s # const gchar *const *arg_an_ao, 1101s # const gchar *const *arg_an_aay, 1101s # GVariant *arg_an_asv) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # 1101s # GList *connections, *l; 1101s # GVariant *signal_variant; 1101s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1101s # 1101s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1101s # arg_an_b, 1101s # arg_an_y, 1101s # arg_an_n, 1101s # arg_an_q, 1101s # arg_an_i, 1101s # arg_an_u, 1101s # arg_an_x, 1101s # arg_an_t, 1101s # arg_an_d, 1101s # arg_an_s, 1101s # arg_an_o, 1101s # arg_an_g, 1101s # arg_an_h, 1101s # arg_an_ay, 1101s # arg_an_as, 1101s # arg_an_ao, 1101s # arg_an_aay, 1101s # arg_an_asv)); 1101s # for (l = connections; l != NULL; l = l->next) 1101s # { 1101s # GDBusConnection *connection = l->data; 1101s # g_dbus_connection_emit_signal (connection, 1101s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1101s # signal_variant, NULL); 1101s # } 1101s # g_variant_unref (signal_variant); 1101s # g_list_free_full (connections, g_object_unref); 1101s # } 1101s # 1101s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #else 1101s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1101s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1101s # 1101s # #endif 1101s # static void 1101s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1101s # { 1101s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1101s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1101s # if (skeleton->priv->changed_properties_idle_source != NULL) 1101s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1101s # g_main_context_unref (skeleton->priv->context); 1101s # g_mutex_clear (&skeleton->priv->lock); 1101s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1101s # { 1101s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1101s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1101s # #else 1101s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1101s # #endif 1101s # 1101s # g_mutex_init (&skeleton->priv->lock); 1101s # skeleton->priv->context = g_main_context_ref_thread_default (); 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1101s # { 1101s # GObjectClass *gobject_class; 1101s # GDBusInterfaceSkeletonClass *skeleton_class; 1101s # 1101s # gobject_class = G_OBJECT_CLASS (klass); 1101s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1101s # 1101s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1101s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1101s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1101s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1101s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1101s # 1101s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1101s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1101s # #endif 1101s # } 1101s # 1101s # static void 1101s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1101s # { 1101s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1101s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1101s # } 1101s # 1101s # /** 1101s # * org_project_signaling_iface_skeleton_new: 1101s # * 1101s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1101s # * 1101s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1101s # */ 1101s # OrgProjectSignalingIface * 1101s # org_project_signaling_iface_skeleton_new (void) 1101s # { 1101s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1101s # } 1101s # Error: 1101s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpo3_5pjxk 1101s # /tmp/tmpo3_5pjxk/tmp35inxf5d.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo3_5pjxk/tmp35inxf5d.xml', '--generate-docbook', 'test'] 1101s # Return code: 0 1101s # Output: 1101s # 1101s # Error: 1101s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpksb63ks9 1101s # /tmp/tmpksb63ks9/tmpi9lu3ghr.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpksb63ks9/tmpi9lu3ghr.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1101s # Return code: 1 1101s # Output: 1101s # 1101s # Error: 1101s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1101s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmp8q0lt_7x 1101s # /tmp/tmp8q0lt_7x/tmpst88n7hh.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8q0lt_7x/tmpst88n7hh.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifndef __STDOUT__ 1101s # #define __STDOUT__ 1101s # 1101s # #include 1101s # 1101s # G_BEGIN_DECLS 1101s # 1101s # 1101s # G_END_DECLS 1101s # 1101s # #endif /* __STDOUT__ */ 1101s # Error: 1101s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpzqwb5dwf 1101s # /tmp/tmpzqwb5dwf/tmp0lljgpyy.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzqwb5dwf/tmp0lljgpyy.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1101s # Return code: 1 1101s # Output: 1101s # 1101s # Error: 1101s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1101s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpb8k67prg 1101s # /tmp/tmpb8k67prg/tmphlu69v9y.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb8k67prg/tmphlu69v9y.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifndef __STDOUT__ 1101s # #define __STDOUT__ 1101s # 1101s # #include 1101s # 1101s # G_BEGIN_DECLS 1101s # 1101s # 1101s # G_END_DECLS 1101s # 1101s # #endif /* __STDOUT__ */ 1101s # Error: 1101s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpk92z84zm 1101s # /tmp/tmpk92z84zm/tmpmcv84xhm.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk92z84zm/tmpmcv84xhm.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifndef __STDOUT__ 1101s # #define __STDOUT__ 1101s # 1101s # #include 1101s # 1101s # G_BEGIN_DECLS 1101s # 1101s # 1101s # G_END_DECLS 1101s # 1101s # #endif /* __STDOUT__ */ 1101s # Error: 1101s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmppc92apyu 1101s # /tmp/tmppc92apyu/tmp6if01vc6.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppc92apyu/tmp6if01vc6.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1101s # Return code: 1 1101s # Output: 1101s # 1101s # Error: 1101s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1101s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpvgk90r5p 1101s # /tmp/tmpvgk90r5p/tmpp8m5pncn.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvgk90r5p/tmpp8m5pncn.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifndef __STDOUT__ 1101s # #define __STDOUT__ 1101s # 1101s # #include 1101s # 1101s # G_BEGIN_DECLS 1101s # 1101s # 1101s # G_END_DECLS 1101s # 1101s # #endif /* __STDOUT__ */ 1101s # Error: 1101s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmp80nguhyw 1101s # /tmp/tmp80nguhyw/tmp_gnmf5nv.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp80nguhyw/tmp_gnmf5nv.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1101s # Return code: 1 1101s # Output: 1101s # 1101s # Error: 1101s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1101s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpnw23e9rh 1101s # /tmp/tmpnw23e9rh/tmp289j5q6b.xml: 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnw23e9rh/tmp289j5q6b.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1101s # Return code: 0 1101s # Output: 1101s # /* 1101s # * This file is generated by gdbus-codegen, do not modify it. 1101s # * 1101s # * The license of this code is the same as for the D-Bus interface description 1101s # * it was derived from. Note that it links to GLib, so must comply with the 1101s # * LGPL linking clauses. 1101s # */ 1101s # 1101s # #ifndef __STDOUT__ 1101s # #define __STDOUT__ 1101s # 1101s # #include 1101s # 1101s # G_BEGIN_DECLS 1101s # 1101s # 1101s # G_END_DECLS 1101s # 1101s # #endif /* __STDOUT__ */ 1101s # Error: 1101s ok 35 __main__.TestCodegen.test_help 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpccbyzmwq 1101s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1101s # Return code: 0 1101s # Output: 1101s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1101s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1101s # [--c-generate-autocleanup {none,objects,all}] 1101s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1101s # [--generate-rst OUTFILES] [--pragma-once] 1101s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1101s # [--glib-min-required VERSION] 1101s # [--glib-max-allowed VERSION] 1101s # [--symbol-decorator SYMBOL_DECORATOR] 1101s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1101s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1101s # [--generate-c-code OUTFILES | --header | --body | 1101s # --interface-info-header | --interface-info-body] 1101s # [--output FILE | --output-directory OUTDIR] 1101s # FILE [FILE ...] 1101s # 1101s # D-Bus code and documentation generator 1101s # 1101s # positional arguments: 1101s # FILE D-Bus introspection XML file 1101s # 1101s # options: 1101s # -h, --help show this help message and exit 1101s # --interface-prefix PREFIX 1101s # String to strip from D-Bus interface names for code 1101s # and docs 1101s # --c-namespace NAMESPACE 1101s # The namespace to use for generated C code 1101s # --c-generate-object-manager 1101s # Generate a GDBusObjectManagerClient subclass when 1101s # generating C code 1101s # --c-generate-autocleanup {none,objects,all} 1101s # Generate autocleanup support 1101s # --generate-docbook OUTFILES 1101s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1101s # --generate-md OUTFILES 1101s # Generate Markdown in OUTFILES-org.Project.IFace.md 1101s # --generate-rst OUTFILES 1101s # Generate reStructuredText in OUTFILES- 1101s # org.Project.IFace.rst 1101s # --pragma-once Use "pragma once" as the inclusion guard 1101s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1101s # Add annotation (may be used several times) 1101s # --glib-min-required VERSION 1101s # Minimum version of GLib to be supported by the 1101s # outputted code (default: 2.30) 1101s # --glib-max-allowed VERSION 1101s # Maximum version of GLib to be used by the outputted 1101s # code (default: current GLib version) 1101s # --symbol-decorator SYMBOL_DECORATOR 1101s # Macro used to decorate a symbol in the outputted 1101s # header, possibly to export symbols 1101s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1101s # Additional header required for decorator specified by 1101s # --symbol-decorator 1101s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1101s # Additional define required for decorator specified by 1101s # --symbol-decorator 1101s # --generate-c-code OUTFILES 1101s # Generate C code in OUTFILES.[ch] 1101s # --header Generate C headers 1101s # --body Generate C code 1101s # --interface-info-header 1101s # Generate GDBusInterfaceInfo C header 1101s # --interface-info-body 1101s # Generate GDBusInterfaceInfo C code 1101s # --output FILE Write output into the specified file 1101s # --output-directory OUTDIR 1101s # Location to output generated files 1101s # Error: 1101s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpxqa704re 1101s # /tmp/tmpxqa704re/tmpaak970wb.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxqa704re/tmpaak970wb.xml', '--generate-rst', 'test'] 1101s # Return code: 0 1101s # Output: 1101s # 1101s # Error: 1101s # 1101s # /tmp/tmpxqa704re/tmpuxjf_5af.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxqa704re/tmpuxjf_5af.xml', '--generate-md', 'test'] 1101s # Return code: 0 1101s # Output: 1101s # 1101s # Error: 1101s # 1101s # /tmp/tmpxqa704re/tmpa6adzw41.xml: 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # 1101s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxqa704re/tmpa6adzw41.xml', '--generate-docbook', 'test'] 1101s # Return code: 0 1101s # Output: 1101s # 1101s # Error: 1101s ok 37 __main__.TestCodegen.test_no_args 1101s # gdbus-codegen: /usr/bin/gdbus-codegen 1101s # tmpdir: /tmp/tmpc_2k5zzo 1101s # Running: ['/usr/bin/gdbus-codegen'] 1101s # Return code: 2 1101s # Output: 1101s # 1101s # Error: 1101s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1101s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1101s # [--c-generate-autocleanup {none,objects,all}] 1101s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1101s # [--generate-rst OUTFILES] [--pragma-once] 1101s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1101s # [--glib-min-required VERSION] 1101s # [--glib-max-allowed VERSION] 1101s # [--symbol-decorator SYMBOL_DECORATOR] 1101s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1101s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1101s # [--generate-c-code OUTFILES | --header | --body | 1101s # --interface-info-header | --interface-info-body] 1101s # [--output FILE | --output-directory OUTDIR] 1101s # FILE [FILE ...] 1101s # gdbus-codegen: error: the following arguments are required: FILE 1102s ok 38 __main__.TestCodegen.test_reproducible 1102s # gdbus-codegen: /usr/bin/gdbus-codegen 1102s # tmpdir: /tmp/tmpejpobr78 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpejpobr78/tmpfsd5t0q21.xml', '/tmp/tmpejpobr78/tmp4v_67klw2.xml', '--output', '-', '--header'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifndef __STDOUT__ 1102s # #define __STDOUT__ 1102s # 1102s # #include 1102s # 1102s # G_BEGIN_DECLS 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for org.project.Bar.Frobnicator */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1102s # 1102s # struct _OrgProjectBarFrobnicator; 1102s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1102s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1102s # 1102s # struct _OrgProjectBarFrobnicatorIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # gboolean (*handle_random_method) ( 1102s # OrgProjectBarFrobnicator *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1102s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void org_project_bar_frobnicator_complete_random_method ( 1102s # OrgProjectBarFrobnicator *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void org_project_bar_frobnicator_call_random_method ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1102s # 1102s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1102s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1102s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void org_project_bar_frobnicator_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1102s # 1102s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1102s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1102s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for com.acme.Coyote */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1102s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1102s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1102s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1102s # 1102s # struct _ComAcmeCoyote; 1102s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1102s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1102s # 1102s # struct _ComAcmeCoyoteIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # 1102s # 1102s # gboolean (*handle_attack) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # gboolean (*handle_run) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # gboolean (*handle_sleep) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1102s # 1102s # void (*surprised) ( 1102s # ComAcmeCoyote *object); 1102s # 1102s # }; 1102s # 1102s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1102s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void com_acme_coyote_complete_run ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # void com_acme_coyote_complete_sleep ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # void com_acme_coyote_complete_attack ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus signal emissions functions: */ 1102s # void com_acme_coyote_emit_surprised ( 1102s # ComAcmeCoyote *object); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void com_acme_coyote_call_run ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_run_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_run_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_call_sleep ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_sleep_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_sleep_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_call_attack ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_attack_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_attack_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* D-Bus property accessors: */ 1102s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1102s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1102s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1102s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1102s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1102s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1102s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1102s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1102s # 1102s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1102s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1102s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1102s # 1102s # struct _ComAcmeCoyoteProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # ComAcmeCoyoteProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _ComAcmeCoyoteProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void com_acme_coyote_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1102s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1102s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1102s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1102s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1102s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1102s # 1102s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1102s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1102s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1102s # 1102s # struct _ComAcmeCoyoteSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # ComAcmeCoyoteSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _ComAcmeCoyoteSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1102s # 1102s # 1102s # G_END_DECLS 1102s # 1102s # #endif /* __STDOUT__ */ 1102s # Error: 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpejpobr78/tmp4v_67klw2.xml', '/tmp/tmpejpobr78/tmpfsd5t0q21.xml', '--output', '-', '--header'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifndef __STDOUT__ 1102s # #define __STDOUT__ 1102s # 1102s # #include 1102s # 1102s # G_BEGIN_DECLS 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for org.project.Bar.Frobnicator */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1102s # 1102s # struct _OrgProjectBarFrobnicator; 1102s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1102s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1102s # 1102s # struct _OrgProjectBarFrobnicatorIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # gboolean (*handle_random_method) ( 1102s # OrgProjectBarFrobnicator *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1102s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void org_project_bar_frobnicator_complete_random_method ( 1102s # OrgProjectBarFrobnicator *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void org_project_bar_frobnicator_call_random_method ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1102s # 1102s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1102s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1102s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void org_project_bar_frobnicator_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1102s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1102s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1102s # 1102s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1102s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1102s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for com.acme.Coyote */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1102s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1102s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1102s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1102s # 1102s # struct _ComAcmeCoyote; 1102s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1102s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1102s # 1102s # struct _ComAcmeCoyoteIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # 1102s # 1102s # gboolean (*handle_attack) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # gboolean (*handle_run) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # gboolean (*handle_sleep) ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1102s # 1102s # void (*surprised) ( 1102s # ComAcmeCoyote *object); 1102s # 1102s # }; 1102s # 1102s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1102s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void com_acme_coyote_complete_run ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # void com_acme_coyote_complete_sleep ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # void com_acme_coyote_complete_attack ( 1102s # ComAcmeCoyote *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus signal emissions functions: */ 1102s # void com_acme_coyote_emit_surprised ( 1102s # ComAcmeCoyote *object); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void com_acme_coyote_call_run ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_run_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_run_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_call_sleep ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_sleep_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_sleep_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_call_attack ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean com_acme_coyote_call_attack_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean com_acme_coyote_call_attack_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* D-Bus property accessors: */ 1102s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1102s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1102s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1102s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1102s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1102s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1102s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1102s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1102s # 1102s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1102s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1102s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1102s # 1102s # struct _ComAcmeCoyoteProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # ComAcmeCoyoteProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _ComAcmeCoyoteProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void com_acme_coyote_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void com_acme_coyote_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1102s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1102s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1102s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1102s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1102s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1102s # 1102s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1102s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1102s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1102s # 1102s # struct _ComAcmeCoyoteSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # ComAcmeCoyoteSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _ComAcmeCoyoteSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1102s # 1102s # 1102s # G_END_DECLS 1102s # 1102s # #endif /* __STDOUT__ */ 1102s # Error: 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpejpobr78/tmpfsd5t0q21.xml', '/tmp/tmpejpobr78/tmp4v_67klw2.xml', '--output', '-', '--body'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifdef HAVE_CONFIG_H 1102s # # include "config.h" 1102s # #endif 1102s # 1102s # #include 1102s # #ifdef G_OS_UNIX 1102s # # include 1102s # #endif 1102s # 1102s # #ifdef G_ENABLE_DEBUG 1102s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1102s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1102s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1102s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1102s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1102s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1102s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1102s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1102s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1102s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1102s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1102s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1102s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1102s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1102s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1102s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1102s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1102s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1102s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1102s # #else /* !G_ENABLE_DEBUG */ 1102s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1102s # * Do not access GValues directly in your code. Instead, use the 1102s # * g_value_get_*() functions 1102s # */ 1102s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1102s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1102s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1102s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1102s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1102s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1102s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1102s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1102s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1102s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1102s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1102s # #endif /* !G_ENABLE_DEBUG */ 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusArgInfo parent_struct; 1102s # gboolean use_gvariant; 1102s # } _ExtendedGDBusArgInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusMethodInfo parent_struct; 1102s # const gchar *signal_name; 1102s # gboolean pass_fdlist; 1102s # } _ExtendedGDBusMethodInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusSignalInfo parent_struct; 1102s # const gchar *signal_name; 1102s # } _ExtendedGDBusSignalInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusPropertyInfo parent_struct; 1102s # const gchar *hyphen_name; 1102s # guint use_gvariant : 1; 1102s # guint emits_changed_signal : 1; 1102s # } _ExtendedGDBusPropertyInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusInterfaceInfo parent_struct; 1102s # const gchar *hyphen_name; 1102s # } _ExtendedGDBusInterfaceInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # guint prop_id; 1102s # GValue orig_value; /* the value before the change */ 1102s # } ChangedProperty; 1102s # 1102s # static void 1102s # _changed_property_free (ChangedProperty *data) 1102s # { 1102s # g_value_unset (&data->orig_value); 1102s # g_free (data); 1102s # } 1102s # 1102s # static gboolean 1102s # _g_strv_equal0 (gchar **a, gchar **b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # guint n; 1102s # if (a == NULL && b == NULL) 1102s # { 1102s # ret = TRUE; 1102s # goto out; 1102s # } 1102s # if (a == NULL || b == NULL) 1102s # goto out; 1102s # if (g_strv_length (a) != g_strv_length (b)) 1102s # goto out; 1102s # for (n = 0; a[n] != NULL; n++) 1102s # if (g_strcmp0 (a[n], b[n]) != 0) 1102s # goto out; 1102s # ret = TRUE; 1102s # out: 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _g_variant_equal0 (GVariant *a, GVariant *b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # if (a == NULL && b == NULL) 1102s # { 1102s # ret = TRUE; 1102s # goto out; 1102s # } 1102s # if (a == NULL || b == NULL) 1102s # goto out; 1102s # ret = g_variant_equal (a, b); 1102s # out: 1102s # return ret; 1102s # } 1102s # 1102s # G_GNUC_UNUSED static gboolean 1102s # _g_value_equal (const GValue *a, const GValue *b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1102s # switch (G_VALUE_TYPE (a)) 1102s # { 1102s # case G_TYPE_BOOLEAN: 1102s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1102s # break; 1102s # case G_TYPE_UCHAR: 1102s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1102s # break; 1102s # case G_TYPE_INT: 1102s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1102s # break; 1102s # case G_TYPE_UINT: 1102s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1102s # break; 1102s # case G_TYPE_INT64: 1102s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1102s # break; 1102s # case G_TYPE_UINT64: 1102s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1102s # break; 1102s # case G_TYPE_DOUBLE: 1102s # { 1102s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1102s # gdouble da = g_value_get_double (a); 1102s # gdouble db = g_value_get_double (b); 1102s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1102s # } 1102s # break; 1102s # case G_TYPE_STRING: 1102s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1102s # break; 1102s # case G_TYPE_VARIANT: 1102s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1102s # break; 1102s # default: 1102s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1102s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1102s # else 1102s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1102s # break; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static void 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint G_GNUC_UNUSED, 1102s # void *marshal_data) 1102s # { 1102s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1102s # (void *data1, 1102s # GDBusMethodInvocation *arg_method_invocation, 1102s # void *data2); 1102s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1102s # GCClosure *cc = (GCClosure*) closure; 1102s # void *data1, *data2; 1102s # gboolean v_return; 1102s # 1102s # g_return_if_fail (return_value != NULL); 1102s # g_return_if_fail (n_param_values == 2); 1102s # 1102s # if (G_CCLOSURE_SWAP_DATA (closure)) 1102s # { 1102s # data1 = closure->data; 1102s # data2 = g_value_peek_pointer (param_values + 0); 1102s # } 1102s # else 1102s # { 1102s # data1 = g_value_peek_pointer (param_values + 0); 1102s # data2 = closure->data; 1102s # } 1102s # 1102s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1102s # (marshal_data ? marshal_data : cc->callback); 1102s # 1102s # v_return = 1102s # callback (data1, 1102s # g_marshal_value_peek_object (param_values + 1), 1102s # data2); 1102s # 1102s # g_value_set_boolean (return_value, v_return); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ 1102s # * Code for interface org.project.Bar.Frobnicator 1102s # * ------------------------------------------------------------------------ 1102s # */ 1102s # 1102s # /** 1102s # * SECTION:OrgProjectBarFrobnicator 1102s # * @title: OrgProjectBarFrobnicator 1102s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1102s # * 1102s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1102s # */ 1102s # 1102s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1102s # 1102s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "RandomMethod", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-random-method", 1102s # FALSE 1102s # }; 1102s # 1102s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1102s # { 1102s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "org.project.Bar.Frobnicator", 1102s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "org-project-bar-frobnicator", 1102s # }; 1102s # 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_interface_info: 1102s # * 1102s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1102s # * 1102s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1102s # */ 1102s # GDBusInterfaceInfo * 1102s # org_project_bar_frobnicator_interface_info (void) 1102s # { 1102s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_override_properties: 1102s # * @klass: The class structure for a #GObject derived class. 1102s # * @property_id_begin: The property id to assign to the first overridden property. 1102s # * 1102s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1102s # * The properties are overridden in the order they are defined. 1102s # * 1102s # * Returns: The last property id. 1102s # */ 1102s # guint 1102s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1102s # { 1102s # return property_id_begin - 1; 1102s # } 1102s # 1102s # 1102s # inline static void 1102s # org_project_bar_frobnicator_method_marshal_random_method ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicator: 1102s # * 1102s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorIface: 1102s # * @parent_iface: The parent interface. 1102s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1102s # * 1102s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1102s # */ 1102s # 1102s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1102s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1102s # { 1102s # /* GObject signals for incoming D-Bus method calls: */ 1102s # /** 1102s # * OrgProjectBarFrobnicator::handle-random-method: 1102s # * @object: A #OrgProjectBarFrobnicator. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-random-method", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # org_project_bar_frobnicator_method_marshal_random_method, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_call_random_method ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "RandomMethod", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method_finish: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # org_project_bar_frobnicator_call_random_method_finish ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method_sync: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # org_project_bar_frobnicator_call_random_method_sync ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "RandomMethod", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_complete_random_method: 1102s # * @object: A #OrgProjectBarFrobnicator. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_complete_random_method ( 1102s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorProxy: 1102s # * 1102s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorProxyClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1102s # */ 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxyPrivate 1102s # { 1102s # GData *qdata; 1102s # }; 1102s # 1102s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1102s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1102s # { 1102s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1102s # g_datalist_clear (&proxy->priv->qdata); 1102s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1102s # guint prop_id G_GNUC_UNUSED, 1102s # GValue *value G_GNUC_UNUSED, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1102s # guint prop_id G_GNUC_UNUSED, 1102s # const GValue *value G_GNUC_UNUSED, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1102s # const gchar *sender_name G_GNUC_UNUSED, 1102s # const gchar *signal_name, 1102s # GVariant *parameters) 1102s # { 1102s # _ExtendedGDBusSignalInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # gsize n; 1102s # guint signal_id; 1102s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1102s # if (info == NULL) 1102s # return; 1102s # num_params = g_variant_n_children (parameters); 1102s # paramv = g_new0 (GValue, num_params + 1); 1102s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_set_object (¶mv[0], proxy); 1102s # g_variant_iter_init (&iter, parameters); 1102s # n = 1; 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_signal_emitv (paramv, signal_id, 0, NULL); 1102s # for (n = 0; n < num_params + 1; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1102s # GVariant *changed_properties, 1102s # const gchar *const *invalidated_properties) 1102s # { 1102s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1102s # guint n; 1102s # const gchar *key; 1102s # GVariantIter *iter; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # g_variant_get (changed_properties, "a{sv}", &iter); 1102s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1102s # g_datalist_remove_data (&proxy->priv->qdata, key); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # g_variant_iter_free (iter); 1102s # for (n = 0; invalidated_properties[n] != NULL; n++) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1102s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1102s # #else 1102s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1102s # #endif 1102s # 1102s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusProxyClass *proxy_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1102s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1102s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1102s # 1102s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1102s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1102s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_sync: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorSkeleton: 1102s # * 1102s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorSkeletonClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1102s # */ 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1102s # { 1102s # GValue *properties; 1102s # GList *changed_properties; 1102s # GSource *changed_properties_idle_source; 1102s # GMainContext *context; 1102s # GMutex lock; 1102s # }; 1102s # 1102s # static void 1102s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name, 1102s # const gchar *method_name, 1102s # GVariant *parameters, 1102s # GDBusMethodInvocation *invocation, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # _ExtendedGDBusMethodInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # guint num_extra; 1102s # gsize n; 1102s # guint signal_id; 1102s # GValue return_value = G_VALUE_INIT; 1102s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1102s # g_assert (info != NULL); 1102s # num_params = g_variant_n_children (parameters); 1102s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1102s # n = 0; 1102s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_set_object (¶mv[n++], skeleton); 1102s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1102s # g_value_set_object (¶mv[n++], invocation); 1102s # if (info->pass_fdlist) 1102s # { 1102s # #ifdef G_OS_UNIX 1102s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1102s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1102s # #else 1102s # g_assert_not_reached (); 1102s # #endif 1102s # } 1102s # g_variant_iter_init (&iter, parameters); 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1102s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1102s # if (!g_value_get_boolean (&return_value)) 1102s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1102s # g_value_unset (&return_value); 1102s # for (n = 0; n < num_params + num_extra; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static GVariant * 1102s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *ret; 1102s # ret = NULL; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # g_value_init (&value, pspec->value_type); 1102s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_value_unset (&value); 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GVariant *variant, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # gboolean ret; 1102s # ret = FALSE; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # if (info->use_gvariant) 1102s # g_value_set_variant (&value, variant); 1102s # else 1102s # g_dbus_gvariant_to_gvalue (variant, &value); 1102s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # g_value_unset (&value); 1102s # ret = TRUE; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1102s # { 1102s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1102s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1102s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1102s # {NULL} 1102s # }; 1102s # 1102s # static GDBusInterfaceInfo * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return org_project_bar_frobnicator_interface_info (); 1102s # } 1102s # 1102s # static GDBusInterfaceVTable * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1102s # } 1102s # 1102s # static GVariant * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1102s # 1102s # GVariantBuilder builder; 1102s # guint n; 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #else 1102s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #endif 1102s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1102s # goto out; 1102s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1102s # { 1102s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1102s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1102s # { 1102s # GVariant *value; 1102s # 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); 1102s # if (value != NULL) 1102s # { 1102s # g_variant_take_ref (value); 1102s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1102s # g_variant_unref (value); 1102s # } 1102s # } 1102s # } 1102s # out: 1102s # return g_variant_builder_end (&builder); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # g_main_context_unref (skeleton->priv->context); 1102s # g_mutex_clear (&skeleton->priv->lock); 1102s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1102s # #else 1102s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1102s # #endif 1102s # 1102s # g_mutex_init (&skeleton->priv->lock); 1102s # skeleton->priv->context = g_main_context_ref_thread_default (); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusInterfaceSkeletonClass *skeleton_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1102s # 1102s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1102s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1102s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1102s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1102s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_skeleton_new: 1102s # * 1102s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_skeleton_new (void) 1102s # { 1102s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ 1102s # * Code for interface com.acme.Coyote 1102s # * ------------------------------------------------------------------------ 1102s # */ 1102s # 1102s # /** 1102s # * SECTION:ComAcmeCoyote 1102s # * @title: ComAcmeCoyote 1102s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1102s # * 1102s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1102s # */ 1102s # 1102s # enum 1102s # { 1102s # _COM_ACME_COYOTE_SURPRISED, 1102s # }; 1102s # 1102s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1102s # 1102s # /* ---- Introspection data for com.acme.Coyote ---- */ 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Run", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-run", 1102s # FALSE 1102s # }; 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Sleep", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-sleep", 1102s # FALSE 1102s # }; 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Attack", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-attack", 1102s # FALSE 1102s # }; 1102s # 1102s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_method_info_run.parent_struct, 1102s # &_com_acme_coyote_method_info_sleep.parent_struct, 1102s # &_com_acme_coyote_method_info_attack.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Surprised", 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "surprised" 1102s # }; 1102s # 1102s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Mood", 1102s # (gchar *) "s", 1102s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1102s # NULL 1102s # }, 1102s # "mood", 1102s # FALSE, 1102s # TRUE 1102s # }; 1102s # 1102s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_property_info_mood.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "com.acme.Coyote", 1102s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1102s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1102s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1102s # NULL 1102s # }, 1102s # "com-acme-coyote", 1102s # }; 1102s # 1102s # 1102s # /** 1102s # * com_acme_coyote_interface_info: 1102s # * 1102s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1102s # * 1102s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1102s # */ 1102s # GDBusInterfaceInfo * 1102s # com_acme_coyote_interface_info (void) 1102s # { 1102s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_override_properties: 1102s # * @klass: The class structure for a #GObject derived class. 1102s # * @property_id_begin: The property id to assign to the first overridden property. 1102s # * 1102s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1102s # * The properties are overridden in the order they are defined. 1102s # * 1102s # * Returns: The last property id. 1102s # */ 1102s # guint 1102s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1102s # { 1102s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1102s # return property_id_begin - 1; 1102s # } 1102s # 1102s # 1102s # inline static void 1102s # com_acme_coyote_signal_marshal_surprised ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # g_cclosure_marshal_VOID__VOID (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_run ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_sleep ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_attack ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # 1102s # /** 1102s # * ComAcmeCoyote: 1102s # * 1102s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteIface: 1102s # * @parent_iface: The parent interface. 1102s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1102s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1102s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1102s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1102s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1102s # * 1102s # * Virtual table for the D-Bus interface com.acme.Coyote. 1102s # */ 1102s # 1102s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1102s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1102s # 1102s # static void 1102s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # /* GObject signals for incoming D-Bus method calls: */ 1102s # /** 1102s # * ComAcmeCoyote::handle-run: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-run", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_run, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /** 1102s # * ComAcmeCoyote::handle-sleep: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-sleep", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_sleep, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /** 1102s # * ComAcmeCoyote::handle-attack: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-attack", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_attack, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /* GObject signals for received D-Bus signals: */ 1102s # /** 1102s # * ComAcmeCoyote::surprised: 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1102s # * 1102s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1102s # */ 1102s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1102s # g_signal_new ("surprised", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1102s # NULL, 1102s # NULL, 1102s # com_acme_coyote_signal_marshal_surprised, 1102s # G_TYPE_NONE, 1102s # 0); 1102s # 1102s # /* GObject properties for D-Bus properties: */ 1102s # /** 1102s # * ComAcmeCoyote:mood: 1102s # * 1102s # * Represents the D-Bus property "Mood". 1102s # * 1102s # * 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. 1102s # */ 1102s # g_object_interface_install_property (iface, 1102s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_get_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Gets the value of the "Mood" D-Bus property. 1102s # * 1102s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # const gchar * 1102s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1102s # 1102s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_dup_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Gets a copy of the "Mood" D-Bus property. 1102s # * 1102s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1102s # * 1102s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1102s # */ 1102s # gchar * 1102s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1102s # { 1102s # gchar *value; 1102s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1102s # return value; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_set_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * @value: The value to set. 1102s # * 1102s # * Sets the "Mood" D-Bus property to @value. 1102s # * 1102s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1102s # */ 1102s # void 1102s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1102s # { 1102s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_emit_surprised: 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Emits the "Surprised" D-Bus signal. 1102s # */ 1102s # void 1102s # com_acme_coyote_emit_surprised ( 1102s # ComAcmeCoyote *object) 1102s # { 1102s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_run ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Run", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_run(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_run_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_run_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Run", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_sleep ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Sleep", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_sleep_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_sleep_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Sleep", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_attack ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Attack", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_attack(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_attack_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_attack_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Attack", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_run: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_run ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_sleep: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_sleep ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_attack: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_attack ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteProxy: 1102s # * 1102s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteProxyClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #ComAcmeCoyoteProxy. 1102s # */ 1102s # 1102s # struct _ComAcmeCoyoteProxyPrivate 1102s # { 1102s # GData *qdata; 1102s # }; 1102s # 1102s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1102s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # com_acme_coyote_proxy_finalize (GObject *object) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1102s # g_datalist_clear (&proxy->priv->qdata); 1102s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_get_property (GObject *object, 1102s # guint prop_id, 1102s # GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *variant; 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1102s # if (info->use_gvariant) 1102s # { 1102s # g_value_set_variant (value, variant); 1102s # } 1102s # else 1102s # { 1102s # if (variant != NULL) 1102s # g_dbus_gvariant_to_gvalue (variant, value); 1102s # } 1102s # if (variant != NULL) 1102s # g_variant_unref (variant); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1102s # GAsyncResult *res, 1102s # gpointer user_data) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info = user_data; 1102s # GError *error; 1102s # GVariant *_ret; 1102s # error = NULL; 1102s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1102s # if (!_ret) 1102s # { 1102s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1102s # info->parent_struct.name, 1102s # error->message, g_quark_to_string (error->domain), error->code); 1102s # g_error_free (error); 1102s # } 1102s # else 1102s # { 1102s # g_variant_unref (_ret); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_set_property (GObject *object, 1102s # guint prop_id, 1102s # const GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *variant; 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1102s # "org.freedesktop.DBus.Properties.Set", 1102s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1102s # g_variant_unref (variant); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1102s # const gchar *sender_name G_GNUC_UNUSED, 1102s # const gchar *signal_name, 1102s # GVariant *parameters) 1102s # { 1102s # _ExtendedGDBusSignalInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # gsize n; 1102s # guint signal_id; 1102s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1102s # if (info == NULL) 1102s # return; 1102s # num_params = g_variant_n_children (parameters); 1102s # paramv = g_new0 (GValue, num_params + 1); 1102s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1102s # g_value_set_object (¶mv[0], proxy); 1102s # g_variant_iter_init (&iter, parameters); 1102s # n = 1; 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1102s # g_signal_emitv (paramv, signal_id, 0, NULL); 1102s # for (n = 0; n < num_params + 1; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1102s # GVariant *changed_properties, 1102s # const gchar *const *invalidated_properties) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1102s # guint n; 1102s # const gchar *key; 1102s # GVariantIter *iter; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # g_variant_get (changed_properties, "a{sv}", &iter); 1102s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1102s # g_datalist_remove_data (&proxy->priv->qdata, key); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # g_variant_iter_free (iter); 1102s # for (n = 0; invalidated_properties[n] != NULL; n++) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1102s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # } 1102s # 1102s # static const gchar * 1102s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1102s # GVariant *variant; 1102s # const gchar *value = NULL; 1102s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1102s # if (variant != NULL) 1102s # { 1102s # value = g_variant_get_string (variant, NULL); 1102s # g_variant_unref (variant); 1102s # } 1102s # return value; 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1102s # #else 1102s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1102s # #endif 1102s # 1102s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusProxyClass *proxy_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1102s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1102s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1102s # 1102s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1102s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1102s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1102s # 1102s # com_acme_coyote_override_properties (gobject_class, 1); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # com_acme_coyote_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_sync: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # com_acme_coyote_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus_sync: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteSkeleton: 1102s # * 1102s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteSkeletonClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #ComAcmeCoyoteSkeleton. 1102s # */ 1102s # 1102s # struct _ComAcmeCoyoteSkeletonPrivate 1102s # { 1102s # GValue *properties; 1102s # GList *changed_properties; 1102s # GSource *changed_properties_idle_source; 1102s # GMainContext *context; 1102s # GMutex lock; 1102s # }; 1102s # 1102s # static void 1102s # _com_acme_coyote_skeleton_handle_method_call ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name, 1102s # const gchar *method_name, 1102s # GVariant *parameters, 1102s # GDBusMethodInvocation *invocation, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # _ExtendedGDBusMethodInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # guint num_extra; 1102s # gsize n; 1102s # guint signal_id; 1102s # GValue return_value = G_VALUE_INIT; 1102s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1102s # g_assert (info != NULL); 1102s # num_params = g_variant_n_children (parameters); 1102s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1102s # n = 0; 1102s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1102s # g_value_set_object (¶mv[n++], skeleton); 1102s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1102s # g_value_set_object (¶mv[n++], invocation); 1102s # if (info->pass_fdlist) 1102s # { 1102s # #ifdef G_OS_UNIX 1102s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1102s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1102s # #else 1102s # g_assert_not_reached (); 1102s # #endif 1102s # } 1102s # g_variant_iter_init (&iter, parameters); 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1102s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1102s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1102s # if (!g_value_get_boolean (&return_value)) 1102s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1102s # g_value_unset (&return_value); 1102s # for (n = 0; n < num_params + num_extra; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static GVariant * 1102s # _com_acme_coyote_skeleton_handle_get_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *ret; 1102s # ret = NULL; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # g_value_init (&value, pspec->value_type); 1102s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_value_unset (&value); 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _com_acme_coyote_skeleton_handle_set_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GVariant *variant, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # gboolean ret; 1102s # ret = FALSE; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # if (info->use_gvariant) 1102s # g_value_set_variant (&value, variant); 1102s # else 1102s # g_dbus_gvariant_to_gvalue (variant, &value); 1102s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # g_value_unset (&value); 1102s # ret = TRUE; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1102s # { 1102s # _com_acme_coyote_skeleton_handle_method_call, 1102s # _com_acme_coyote_skeleton_handle_get_property, 1102s # _com_acme_coyote_skeleton_handle_set_property, 1102s # {NULL} 1102s # }; 1102s # 1102s # static GDBusInterfaceInfo * 1102s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return com_acme_coyote_interface_info (); 1102s # } 1102s # 1102s # static GDBusInterfaceVTable * 1102s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1102s # } 1102s # 1102s # static GVariant * 1102s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1102s # 1102s # GVariantBuilder builder; 1102s # guint n; 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #else 1102s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #endif 1102s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1102s # goto out; 1102s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1102s # { 1102s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1102s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1102s # { 1102s # GVariant *value; 1102s # 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); 1102s # if (value != NULL) 1102s # { 1102s # g_variant_take_ref (value); 1102s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1102s # g_variant_unref (value); 1102s # } 1102s # } 1102s # } 1102s # out: 1102s # return g_variant_builder_end (&builder); 1102s # } 1102s # 1102s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1102s # gboolean emit_changed = FALSE; 1102s # 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # { 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # skeleton->priv->changed_properties_idle_source = NULL; 1102s # emit_changed = TRUE; 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # 1102s # if (emit_changed) 1102s # _com_acme_coyote_emit_changed (skeleton); 1102s # } 1102s # 1102s # static void 1102s # _com_acme_coyote_on_signal_surprised ( 1102s # ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # 1102s # GList *connections, *l; 1102s # GVariant *signal_variant; 1102s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1102s # 1102s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1102s # for (l = connections; l != NULL; l = l->next) 1102s # { 1102s # GDBusConnection *connection = l->data; 1102s # g_dbus_connection_emit_signal (connection, 1102s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1102s # signal_variant, NULL); 1102s # } 1102s # g_variant_unref (signal_variant); 1102s # g_list_free_full (connections, g_object_unref); 1102s # } 1102s # 1102s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # com_acme_coyote_skeleton_finalize (GObject *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # guint n; 1102s # for (n = 0; n < 1; n++) 1102s # g_value_unset (&skeleton->priv->properties[n]); 1102s # g_free (skeleton->priv->properties); 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # g_main_context_unref (skeleton->priv->context); 1102s # g_mutex_clear (&skeleton->priv->lock); 1102s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_get_property (GObject *object, 1102s # guint prop_id, 1102s # GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # } 1102s # 1102s # static gboolean 1102s # _com_acme_coyote_emit_changed (gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GList *l; 1102s # GVariantBuilder builder; 1102s # GVariantBuilder invalidated_builder; 1102s # guint num_changes; 1102s # 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1102s # #else 1102s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1102s # #endif 1102s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1102s # { 1102s # ChangedProperty *cp = l->data; 1102s # GVariant *variant; 1102s # const GValue *cur_value; 1102s # 1102s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1102s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1102s # { 1102s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1102s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1102s # g_variant_unref (variant); 1102s # num_changes++; 1102s # } 1102s # } 1102s # if (num_changes > 0) 1102s # { 1102s # GList *connections, *ll; 1102s # GVariant *signal_variant; 1102s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1102s # &builder, &invalidated_builder)); 1102s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1102s # for (ll = connections; ll != NULL; ll = ll->next) 1102s # { 1102s # GDBusConnection *connection = ll->data; 1102s # 1102s # g_dbus_connection_emit_signal (connection, 1102s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1102s # "org.freedesktop.DBus.Properties", 1102s # "PropertiesChanged", 1102s # signal_variant, 1102s # NULL); 1102s # } 1102s # g_variant_unref (signal_variant); 1102s # g_list_free_full (connections, g_object_unref); 1102s # } 1102s # else 1102s # { 1102s # g_variant_builder_clear (&builder); 1102s # g_variant_builder_clear (&invalidated_builder); 1102s # } 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # skeleton->priv->changed_properties = NULL; 1102s # skeleton->priv->changed_properties_idle_source = NULL; 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # return FALSE; 1102s # } 1102s # 1102s # static void 1102s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1102s # { 1102s # ChangedProperty *cp; 1102s # GList *l; 1102s # cp = NULL; 1102s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1102s # { 1102s # ChangedProperty *i_cp = l->data; 1102s # if (i_cp->info == info) 1102s # { 1102s # cp = i_cp; 1102s # break; 1102s # } 1102s # } 1102s # if (cp == NULL) 1102s # { 1102s # cp = g_new0 (ChangedProperty, 1); 1102s # cp->prop_id = prop_id; 1102s # cp->info = info; 1102s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1102s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1102s # g_value_copy (orig_value, &cp->orig_value); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_notify (GObject *object, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # if (skeleton->priv->changed_properties != NULL && 1102s # skeleton->priv->changed_properties_idle_source == NULL) 1102s # { 1102s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1102s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1102s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1102s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1102s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1102s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_set_property (GObject *object, 1102s # guint prop_id, 1102s # const GValue *value, 1102s # GParamSpec *pspec) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # g_object_freeze_notify (object); 1102s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1102s # { 1102s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1102s # info->emits_changed_signal) 1102s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1102s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1102s # g_object_notify_by_pspec (object, pspec); 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # g_object_thaw_notify (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1102s # #else 1102s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1102s # #endif 1102s # 1102s # g_mutex_init (&skeleton->priv->lock); 1102s # skeleton->priv->context = g_main_context_ref_thread_default (); 1102s # skeleton->priv->properties = g_new0 (GValue, 1); 1102s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1102s # } 1102s # 1102s # static const gchar * 1102s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # const gchar *value; 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # return value; 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusInterfaceSkeletonClass *skeleton_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1102s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1102s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1102s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1102s # 1102s # 1102s # com_acme_coyote_override_properties (gobject_class, 1); 1102s # 1102s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1102s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1102s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1102s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1102s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1102s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_skeleton_new: 1102s # * 1102s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_skeleton_new (void) 1102s # { 1102s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1102s # } 1102s # Error: 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpejpobr78/tmp4v_67klw2.xml', '/tmp/tmpejpobr78/tmpfsd5t0q21.xml', '--output', '-', '--body'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifdef HAVE_CONFIG_H 1102s # # include "config.h" 1102s # #endif 1102s # 1102s # #include 1102s # #ifdef G_OS_UNIX 1102s # # include 1102s # #endif 1102s # 1102s # #ifdef G_ENABLE_DEBUG 1102s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1102s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1102s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1102s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1102s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1102s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1102s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1102s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1102s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1102s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1102s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1102s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1102s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1102s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1102s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1102s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1102s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1102s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1102s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1102s # #else /* !G_ENABLE_DEBUG */ 1102s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1102s # * Do not access GValues directly in your code. Instead, use the 1102s # * g_value_get_*() functions 1102s # */ 1102s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1102s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1102s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1102s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1102s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1102s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1102s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1102s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1102s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1102s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1102s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1102s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1102s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1102s # #endif /* !G_ENABLE_DEBUG */ 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusArgInfo parent_struct; 1102s # gboolean use_gvariant; 1102s # } _ExtendedGDBusArgInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusMethodInfo parent_struct; 1102s # const gchar *signal_name; 1102s # gboolean pass_fdlist; 1102s # } _ExtendedGDBusMethodInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusSignalInfo parent_struct; 1102s # const gchar *signal_name; 1102s # } _ExtendedGDBusSignalInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusPropertyInfo parent_struct; 1102s # const gchar *hyphen_name; 1102s # guint use_gvariant : 1; 1102s # guint emits_changed_signal : 1; 1102s # } _ExtendedGDBusPropertyInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # GDBusInterfaceInfo parent_struct; 1102s # const gchar *hyphen_name; 1102s # } _ExtendedGDBusInterfaceInfo; 1102s # 1102s # typedef struct 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # guint prop_id; 1102s # GValue orig_value; /* the value before the change */ 1102s # } ChangedProperty; 1102s # 1102s # static void 1102s # _changed_property_free (ChangedProperty *data) 1102s # { 1102s # g_value_unset (&data->orig_value); 1102s # g_free (data); 1102s # } 1102s # 1102s # static gboolean 1102s # _g_strv_equal0 (gchar **a, gchar **b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # guint n; 1102s # if (a == NULL && b == NULL) 1102s # { 1102s # ret = TRUE; 1102s # goto out; 1102s # } 1102s # if (a == NULL || b == NULL) 1102s # goto out; 1102s # if (g_strv_length (a) != g_strv_length (b)) 1102s # goto out; 1102s # for (n = 0; a[n] != NULL; n++) 1102s # if (g_strcmp0 (a[n], b[n]) != 0) 1102s # goto out; 1102s # ret = TRUE; 1102s # out: 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _g_variant_equal0 (GVariant *a, GVariant *b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # if (a == NULL && b == NULL) 1102s # { 1102s # ret = TRUE; 1102s # goto out; 1102s # } 1102s # if (a == NULL || b == NULL) 1102s # goto out; 1102s # ret = g_variant_equal (a, b); 1102s # out: 1102s # return ret; 1102s # } 1102s # 1102s # G_GNUC_UNUSED static gboolean 1102s # _g_value_equal (const GValue *a, const GValue *b) 1102s # { 1102s # gboolean ret = FALSE; 1102s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1102s # switch (G_VALUE_TYPE (a)) 1102s # { 1102s # case G_TYPE_BOOLEAN: 1102s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1102s # break; 1102s # case G_TYPE_UCHAR: 1102s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1102s # break; 1102s # case G_TYPE_INT: 1102s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1102s # break; 1102s # case G_TYPE_UINT: 1102s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1102s # break; 1102s # case G_TYPE_INT64: 1102s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1102s # break; 1102s # case G_TYPE_UINT64: 1102s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1102s # break; 1102s # case G_TYPE_DOUBLE: 1102s # { 1102s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1102s # gdouble da = g_value_get_double (a); 1102s # gdouble db = g_value_get_double (b); 1102s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1102s # } 1102s # break; 1102s # case G_TYPE_STRING: 1102s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1102s # break; 1102s # case G_TYPE_VARIANT: 1102s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1102s # break; 1102s # default: 1102s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1102s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1102s # else 1102s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1102s # break; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static void 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint G_GNUC_UNUSED, 1102s # void *marshal_data) 1102s # { 1102s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1102s # (void *data1, 1102s # GDBusMethodInvocation *arg_method_invocation, 1102s # void *data2); 1102s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1102s # GCClosure *cc = (GCClosure*) closure; 1102s # void *data1, *data2; 1102s # gboolean v_return; 1102s # 1102s # g_return_if_fail (return_value != NULL); 1102s # g_return_if_fail (n_param_values == 2); 1102s # 1102s # if (G_CCLOSURE_SWAP_DATA (closure)) 1102s # { 1102s # data1 = closure->data; 1102s # data2 = g_value_peek_pointer (param_values + 0); 1102s # } 1102s # else 1102s # { 1102s # data1 = g_value_peek_pointer (param_values + 0); 1102s # data2 = closure->data; 1102s # } 1102s # 1102s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1102s # (marshal_data ? marshal_data : cc->callback); 1102s # 1102s # v_return = 1102s # callback (data1, 1102s # g_marshal_value_peek_object (param_values + 1), 1102s # data2); 1102s # 1102s # g_value_set_boolean (return_value, v_return); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ 1102s # * Code for interface org.project.Bar.Frobnicator 1102s # * ------------------------------------------------------------------------ 1102s # */ 1102s # 1102s # /** 1102s # * SECTION:OrgProjectBarFrobnicator 1102s # * @title: OrgProjectBarFrobnicator 1102s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1102s # * 1102s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1102s # */ 1102s # 1102s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1102s # 1102s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "RandomMethod", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-random-method", 1102s # FALSE 1102s # }; 1102s # 1102s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1102s # { 1102s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "org.project.Bar.Frobnicator", 1102s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "org-project-bar-frobnicator", 1102s # }; 1102s # 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_interface_info: 1102s # * 1102s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1102s # * 1102s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1102s # */ 1102s # GDBusInterfaceInfo * 1102s # org_project_bar_frobnicator_interface_info (void) 1102s # { 1102s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_override_properties: 1102s # * @klass: The class structure for a #GObject derived class. 1102s # * @property_id_begin: The property id to assign to the first overridden property. 1102s # * 1102s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1102s # * The properties are overridden in the order they are defined. 1102s # * 1102s # * Returns: The last property id. 1102s # */ 1102s # guint 1102s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1102s # { 1102s # return property_id_begin - 1; 1102s # } 1102s # 1102s # 1102s # inline static void 1102s # org_project_bar_frobnicator_method_marshal_random_method ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicator: 1102s # * 1102s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorIface: 1102s # * @parent_iface: The parent interface. 1102s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1102s # * 1102s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1102s # */ 1102s # 1102s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1102s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1102s # { 1102s # /* GObject signals for incoming D-Bus method calls: */ 1102s # /** 1102s # * OrgProjectBarFrobnicator::handle-random-method: 1102s # * @object: A #OrgProjectBarFrobnicator. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-random-method", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # org_project_bar_frobnicator_method_marshal_random_method, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_call_random_method ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "RandomMethod", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method_finish: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # org_project_bar_frobnicator_call_random_method_finish ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_call_random_method_sync: 1102s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # org_project_bar_frobnicator_call_random_method_sync ( 1102s # OrgProjectBarFrobnicator *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "RandomMethod", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_complete_random_method: 1102s # * @object: A #OrgProjectBarFrobnicator. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_complete_random_method ( 1102s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorProxy: 1102s # * 1102s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorProxyClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1102s # */ 1102s # 1102s # struct _OrgProjectBarFrobnicatorProxyPrivate 1102s # { 1102s # GData *qdata; 1102s # }; 1102s # 1102s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1102s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1102s # { 1102s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1102s # g_datalist_clear (&proxy->priv->qdata); 1102s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1102s # guint prop_id G_GNUC_UNUSED, 1102s # GValue *value G_GNUC_UNUSED, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1102s # guint prop_id G_GNUC_UNUSED, 1102s # const GValue *value G_GNUC_UNUSED, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1102s # const gchar *sender_name G_GNUC_UNUSED, 1102s # const gchar *signal_name, 1102s # GVariant *parameters) 1102s # { 1102s # _ExtendedGDBusSignalInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # gsize n; 1102s # guint signal_id; 1102s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1102s # if (info == NULL) 1102s # return; 1102s # num_params = g_variant_n_children (parameters); 1102s # paramv = g_new0 (GValue, num_params + 1); 1102s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_set_object (¶mv[0], proxy); 1102s # g_variant_iter_init (&iter, parameters); 1102s # n = 1; 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_signal_emitv (paramv, signal_id, 0, NULL); 1102s # for (n = 0; n < num_params + 1; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1102s # GVariant *changed_properties, 1102s # const gchar *const *invalidated_properties) 1102s # { 1102s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1102s # guint n; 1102s # const gchar *key; 1102s # GVariantIter *iter; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # g_variant_get (changed_properties, "a{sv}", &iter); 1102s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1102s # g_datalist_remove_data (&proxy->priv->qdata, key); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # g_variant_iter_free (iter); 1102s # for (n = 0; invalidated_properties[n] != NULL; n++) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1102s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1102s # #else 1102s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1102s # #endif 1102s # 1102s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusProxyClass *proxy_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1102s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1102s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1102s # 1102s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1102s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1102s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_sync: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # org_project_bar_frobnicator_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorSkeleton: 1102s # * 1102s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * OrgProjectBarFrobnicatorSkeletonClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1102s # */ 1102s # 1102s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1102s # { 1102s # GValue *properties; 1102s # GList *changed_properties; 1102s # GSource *changed_properties_idle_source; 1102s # GMainContext *context; 1102s # GMutex lock; 1102s # }; 1102s # 1102s # static void 1102s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name, 1102s # const gchar *method_name, 1102s # GVariant *parameters, 1102s # GDBusMethodInvocation *invocation, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # _ExtendedGDBusMethodInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # guint num_extra; 1102s # gsize n; 1102s # guint signal_id; 1102s # GValue return_value = G_VALUE_INIT; 1102s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1102s # g_assert (info != NULL); 1102s # num_params = g_variant_n_children (parameters); 1102s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1102s # n = 0; 1102s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_set_object (¶mv[n++], skeleton); 1102s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1102s # g_value_set_object (¶mv[n++], invocation); 1102s # if (info->pass_fdlist) 1102s # { 1102s # #ifdef G_OS_UNIX 1102s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1102s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1102s # #else 1102s # g_assert_not_reached (); 1102s # #endif 1102s # } 1102s # g_variant_iter_init (&iter, parameters); 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1102s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1102s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1102s # if (!g_value_get_boolean (&return_value)) 1102s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1102s # g_value_unset (&return_value); 1102s # for (n = 0; n < num_params + num_extra; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static GVariant * 1102s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *ret; 1102s # ret = NULL; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # g_value_init (&value, pspec->value_type); 1102s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_value_unset (&value); 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GVariant *variant, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # gboolean ret; 1102s # ret = FALSE; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # if (info->use_gvariant) 1102s # g_value_set_variant (&value, variant); 1102s # else 1102s # g_dbus_gvariant_to_gvalue (variant, &value); 1102s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # g_value_unset (&value); 1102s # ret = TRUE; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1102s # { 1102s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1102s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1102s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1102s # {NULL} 1102s # }; 1102s # 1102s # static GDBusInterfaceInfo * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return org_project_bar_frobnicator_interface_info (); 1102s # } 1102s # 1102s # static GDBusInterfaceVTable * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1102s # } 1102s # 1102s # static GVariant * 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1102s # 1102s # GVariantBuilder builder; 1102s # guint n; 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #else 1102s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #endif 1102s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1102s # goto out; 1102s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1102s # { 1102s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1102s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1102s # { 1102s # GVariant *value; 1102s # 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); 1102s # if (value != NULL) 1102s # { 1102s # g_variant_take_ref (value); 1102s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1102s # g_variant_unref (value); 1102s # } 1102s # } 1102s # } 1102s # out: 1102s # return g_variant_builder_end (&builder); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1102s # { 1102s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # g_main_context_unref (skeleton->priv->context); 1102s # g_mutex_clear (&skeleton->priv->lock); 1102s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1102s # #else 1102s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1102s # #endif 1102s # 1102s # g_mutex_init (&skeleton->priv->lock); 1102s # skeleton->priv->context = g_main_context_ref_thread_default (); 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusInterfaceSkeletonClass *skeleton_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1102s # 1102s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1102s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1102s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1102s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1102s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1102s # { 1102s # } 1102s # 1102s # /** 1102s # * org_project_bar_frobnicator_skeleton_new: 1102s # * 1102s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1102s # * 1102s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1102s # */ 1102s # OrgProjectBarFrobnicator * 1102s # org_project_bar_frobnicator_skeleton_new (void) 1102s # { 1102s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ 1102s # * Code for interface com.acme.Coyote 1102s # * ------------------------------------------------------------------------ 1102s # */ 1102s # 1102s # /** 1102s # * SECTION:ComAcmeCoyote 1102s # * @title: ComAcmeCoyote 1102s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1102s # * 1102s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1102s # */ 1102s # 1102s # enum 1102s # { 1102s # _COM_ACME_COYOTE_SURPRISED, 1102s # }; 1102s # 1102s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1102s # 1102s # /* ---- Introspection data for com.acme.Coyote ---- */ 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Run", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-run", 1102s # FALSE 1102s # }; 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Sleep", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-sleep", 1102s # FALSE 1102s # }; 1102s # 1102s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Attack", 1102s # NULL, 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "handle-attack", 1102s # FALSE 1102s # }; 1102s # 1102s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_method_info_run.parent_struct, 1102s # &_com_acme_coyote_method_info_sleep.parent_struct, 1102s # &_com_acme_coyote_method_info_attack.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Surprised", 1102s # NULL, 1102s # NULL 1102s # }, 1102s # "surprised" 1102s # }; 1102s # 1102s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "Mood", 1102s # (gchar *) "s", 1102s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1102s # NULL 1102s # }, 1102s # "mood", 1102s # FALSE, 1102s # TRUE 1102s # }; 1102s # 1102s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1102s # { 1102s # &_com_acme_coyote_property_info_mood.parent_struct, 1102s # NULL 1102s # }; 1102s # 1102s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1102s # { 1102s # { 1102s # -1, 1102s # (gchar *) "com.acme.Coyote", 1102s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1102s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1102s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1102s # NULL 1102s # }, 1102s # "com-acme-coyote", 1102s # }; 1102s # 1102s # 1102s # /** 1102s # * com_acme_coyote_interface_info: 1102s # * 1102s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1102s # * 1102s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1102s # */ 1102s # GDBusInterfaceInfo * 1102s # com_acme_coyote_interface_info (void) 1102s # { 1102s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_override_properties: 1102s # * @klass: The class structure for a #GObject derived class. 1102s # * @property_id_begin: The property id to assign to the first overridden property. 1102s # * 1102s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1102s # * The properties are overridden in the order they are defined. 1102s # * 1102s # * Returns: The last property id. 1102s # */ 1102s # guint 1102s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1102s # { 1102s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1102s # return property_id_begin - 1; 1102s # } 1102s # 1102s # 1102s # inline static void 1102s # com_acme_coyote_signal_marshal_surprised ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # g_cclosure_marshal_VOID__VOID (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_run ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_sleep ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # inline static void 1102s # com_acme_coyote_method_marshal_attack ( 1102s # GClosure *closure, 1102s # GValue *return_value, 1102s # unsigned int n_param_values, 1102s # const GValue *param_values, 1102s # void *invocation_hint, 1102s # void *marshal_data) 1102s # { 1102s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1102s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1102s # } 1102s # 1102s # 1102s # /** 1102s # * ComAcmeCoyote: 1102s # * 1102s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteIface: 1102s # * @parent_iface: The parent interface. 1102s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1102s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1102s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1102s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1102s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1102s # * 1102s # * Virtual table for the D-Bus interface com.acme.Coyote. 1102s # */ 1102s # 1102s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1102s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1102s # 1102s # static void 1102s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # /* GObject signals for incoming D-Bus method calls: */ 1102s # /** 1102s # * ComAcmeCoyote::handle-run: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-run", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_run, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /** 1102s # * ComAcmeCoyote::handle-sleep: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-sleep", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_sleep, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /** 1102s # * ComAcmeCoyote::handle-attack: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: A #GDBusMethodInvocation. 1102s # * 1102s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # g_signal_new ("handle-attack", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1102s # g_signal_accumulator_true_handled, 1102s # NULL, 1102s # com_acme_coyote_method_marshal_attack, 1102s # G_TYPE_BOOLEAN, 1102s # 1, 1102s # G_TYPE_DBUS_METHOD_INVOCATION); 1102s # 1102s # /* GObject signals for received D-Bus signals: */ 1102s # /** 1102s # * ComAcmeCoyote::surprised: 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1102s # * 1102s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1102s # */ 1102s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1102s # g_signal_new ("surprised", 1102s # G_TYPE_FROM_INTERFACE (iface), 1102s # G_SIGNAL_RUN_LAST, 1102s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1102s # NULL, 1102s # NULL, 1102s # com_acme_coyote_signal_marshal_surprised, 1102s # G_TYPE_NONE, 1102s # 0); 1102s # 1102s # /* GObject properties for D-Bus properties: */ 1102s # /** 1102s # * ComAcmeCoyote:mood: 1102s # * 1102s # * Represents the D-Bus property "Mood". 1102s # * 1102s # * 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. 1102s # */ 1102s # g_object_interface_install_property (iface, 1102s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_get_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Gets the value of the "Mood" D-Bus property. 1102s # * 1102s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1102s # * 1102s # * 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. 1102s # * 1102s # * 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. 1102s # */ 1102s # const gchar * 1102s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1102s # 1102s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_dup_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Gets a copy of the "Mood" D-Bus property. 1102s # * 1102s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1102s # * 1102s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1102s # */ 1102s # gchar * 1102s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1102s # { 1102s # gchar *value; 1102s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1102s # return value; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_set_mood: (skip) 1102s # * @object: A #ComAcmeCoyote. 1102s # * @value: The value to set. 1102s # * 1102s # * Sets the "Mood" D-Bus property to @value. 1102s # * 1102s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1102s # */ 1102s # void 1102s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1102s # { 1102s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_emit_surprised: 1102s # * @object: A #ComAcmeCoyote. 1102s # * 1102s # * Emits the "Surprised" D-Bus signal. 1102s # */ 1102s # void 1102s # com_acme_coyote_emit_surprised ( 1102s # ComAcmeCoyote *object) 1102s # { 1102s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_run ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Run", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_run(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_run_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_run_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_run_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Run", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_sleep ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Sleep", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_sleep_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_sleep_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_sleep_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Sleep", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1102s # */ 1102s # void 1102s # com_acme_coyote_call_attack ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1102s # "Attack", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # callback, 1102s # user_data); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack_finish: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_call_attack(). 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_attack_finish ( 1102s # ComAcmeCoyote *proxy, 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_call_attack_sync: 1102s # * @proxy: A #ComAcmeCoyoteProxy. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL. 1102s # * 1102s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1102s # * 1102s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1102s # */ 1102s # gboolean 1102s # com_acme_coyote_call_attack_sync ( 1102s # ComAcmeCoyote *proxy, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GVariant *_ret; 1102s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1102s # "Attack", 1102s # g_variant_new ("()"), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # cancellable, 1102s # error); 1102s # if (_ret == NULL) 1102s # goto _out; 1102s # g_variant_get (_ret, 1102s # "()"); 1102s # g_variant_unref (_ret); 1102s # _out: 1102s # return _ret != NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_run: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_run ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_sleep: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_sleep ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_complete_attack: 1102s # * @object: A #ComAcmeCoyote. 1102s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1102s # * 1102s # * 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. 1102s # * 1102s # * This method will free @invocation, you cannot use it afterwards. 1102s # */ 1102s # void 1102s # com_acme_coyote_complete_attack ( 1102s # ComAcmeCoyote *object G_GNUC_UNUSED, 1102s # GDBusMethodInvocation *invocation) 1102s # { 1102s # g_dbus_method_invocation_return_value (invocation, 1102s # g_variant_new ("()")); 1102s # } 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteProxy: 1102s # * 1102s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteProxyClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #ComAcmeCoyoteProxy. 1102s # */ 1102s # 1102s # struct _ComAcmeCoyoteProxyPrivate 1102s # { 1102s # GData *qdata; 1102s # }; 1102s # 1102s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1102s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # com_acme_coyote_proxy_finalize (GObject *object) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1102s # g_datalist_clear (&proxy->priv->qdata); 1102s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_get_property (GObject *object, 1102s # guint prop_id, 1102s # GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *variant; 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1102s # if (info->use_gvariant) 1102s # { 1102s # g_value_set_variant (value, variant); 1102s # } 1102s # else 1102s # { 1102s # if (variant != NULL) 1102s # g_dbus_gvariant_to_gvalue (variant, value); 1102s # } 1102s # if (variant != NULL) 1102s # g_variant_unref (variant); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1102s # GAsyncResult *res, 1102s # gpointer user_data) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info = user_data; 1102s # GError *error; 1102s # GVariant *_ret; 1102s # error = NULL; 1102s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1102s # if (!_ret) 1102s # { 1102s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1102s # info->parent_struct.name, 1102s # error->message, g_quark_to_string (error->domain), error->code); 1102s # g_error_free (error); 1102s # } 1102s # else 1102s # { 1102s # g_variant_unref (_ret); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_set_property (GObject *object, 1102s # guint prop_id, 1102s # const GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *variant; 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1102s # "org.freedesktop.DBus.Properties.Set", 1102s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1102s # G_DBUS_CALL_FLAGS_NONE, 1102s # -1, 1102s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1102s # g_variant_unref (variant); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1102s # const gchar *sender_name G_GNUC_UNUSED, 1102s # const gchar *signal_name, 1102s # GVariant *parameters) 1102s # { 1102s # _ExtendedGDBusSignalInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # gsize n; 1102s # guint signal_id; 1102s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1102s # if (info == NULL) 1102s # return; 1102s # num_params = g_variant_n_children (parameters); 1102s # paramv = g_new0 (GValue, num_params + 1); 1102s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1102s # g_value_set_object (¶mv[0], proxy); 1102s # g_variant_iter_init (&iter, parameters); 1102s # n = 1; 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1102s # g_signal_emitv (paramv, signal_id, 0, NULL); 1102s # for (n = 0; n < num_params + 1; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1102s # GVariant *changed_properties, 1102s # const gchar *const *invalidated_properties) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1102s # guint n; 1102s # const gchar *key; 1102s # GVariantIter *iter; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # g_variant_get (changed_properties, "a{sv}", &iter); 1102s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1102s # g_datalist_remove_data (&proxy->priv->qdata, key); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # g_variant_iter_free (iter); 1102s # for (n = 0; invalidated_properties[n] != NULL; n++) 1102s # { 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1102s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1102s # if (info != NULL) 1102s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1102s # } 1102s # } 1102s # 1102s # static const gchar * 1102s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1102s # GVariant *variant; 1102s # const gchar *value = NULL; 1102s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1102s # if (variant != NULL) 1102s # { 1102s # value = g_variant_get_string (variant, NULL); 1102s # g_variant_unref (variant); 1102s # } 1102s # return value; 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1102s # #else 1102s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1102s # #endif 1102s # 1102s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusProxyClass *proxy_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1102s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1102s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1102s # 1102s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1102s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1102s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1102s # 1102s # com_acme_coyote_override_properties (gobject_class, 1); 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # com_acme_coyote_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_sync: 1102s # * @connection: A #GDBusConnection. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1102s # * @user_data: User data to pass to @callback. 1102s # * 1102s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1102s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1102s # * 1102s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1102s # */ 1102s # void 1102s # com_acme_coyote_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data) 1102s # { 1102s # 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); 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus_finish: 1102s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error) 1102s # { 1102s # GObject *ret; 1102s # GObject *source_object; 1102s # source_object = g_async_result_get_source_object (res); 1102s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1102s # g_object_unref (source_object); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_proxy_new_for_bus_sync: 1102s # * @bus_type: A #GBusType. 1102s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1102s # * @name: A bus name (well-known or unique). 1102s # * @object_path: An object path. 1102s # * @cancellable: (nullable): A #GCancellable or %NULL. 1102s # * @error: Return location for error or %NULL 1102s # * 1102s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1102s # * 1102s # * The calling thread is blocked until a reply is received. 1102s # * 1102s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error) 1102s # { 1102s # GInitable *ret; 1102s # 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); 1102s # if (ret != NULL) 1102s # return COM_ACME_COYOTE (ret); 1102s # else 1102s # return NULL; 1102s # } 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteSkeleton: 1102s # * 1102s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1102s # */ 1102s # 1102s # /** 1102s # * ComAcmeCoyoteSkeletonClass: 1102s # * @parent_class: The parent class. 1102s # * 1102s # * Class structure for #ComAcmeCoyoteSkeleton. 1102s # */ 1102s # 1102s # struct _ComAcmeCoyoteSkeletonPrivate 1102s # { 1102s # GValue *properties; 1102s # GList *changed_properties; 1102s # GSource *changed_properties_idle_source; 1102s # GMainContext *context; 1102s # GMutex lock; 1102s # }; 1102s # 1102s # static void 1102s # _com_acme_coyote_skeleton_handle_method_call ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name, 1102s # const gchar *method_name, 1102s # GVariant *parameters, 1102s # GDBusMethodInvocation *invocation, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # _ExtendedGDBusMethodInfo *info; 1102s # GVariantIter iter; 1102s # GVariant *child; 1102s # GValue *paramv; 1102s # gsize num_params; 1102s # guint num_extra; 1102s # gsize n; 1102s # guint signal_id; 1102s # GValue return_value = G_VALUE_INIT; 1102s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1102s # g_assert (info != NULL); 1102s # num_params = g_variant_n_children (parameters); 1102s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1102s # n = 0; 1102s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1102s # g_value_set_object (¶mv[n++], skeleton); 1102s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1102s # g_value_set_object (¶mv[n++], invocation); 1102s # if (info->pass_fdlist) 1102s # { 1102s # #ifdef G_OS_UNIX 1102s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1102s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1102s # #else 1102s # g_assert_not_reached (); 1102s # #endif 1102s # } 1102s # g_variant_iter_init (&iter, parameters); 1102s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1102s # { 1102s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1102s # if (arg_info->use_gvariant) 1102s # { 1102s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1102s # g_value_set_variant (¶mv[n], child); 1102s # n++; 1102s # } 1102s # else 1102s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1102s # g_variant_unref (child); 1102s # } 1102s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1102s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1102s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1102s # if (!g_value_get_boolean (&return_value)) 1102s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1102s # g_value_unset (&return_value); 1102s # for (n = 0; n < num_params + num_extra; n++) 1102s # g_value_unset (¶mv[n]); 1102s # g_free (paramv); 1102s # } 1102s # 1102s # static GVariant * 1102s # _com_acme_coyote_skeleton_handle_get_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # GVariant *ret; 1102s # ret = NULL; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # g_value_init (&value, pspec->value_type); 1102s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1102s # g_value_unset (&value); 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static gboolean 1102s # _com_acme_coyote_skeleton_handle_set_property ( 1102s # GDBusConnection *connection G_GNUC_UNUSED, 1102s # const gchar *sender G_GNUC_UNUSED, 1102s # const gchar *object_path G_GNUC_UNUSED, 1102s # const gchar *interface_name G_GNUC_UNUSED, 1102s # const gchar *property_name, 1102s # GVariant *variant, 1102s # GError **error, 1102s # gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GValue value = G_VALUE_INIT; 1102s # GParamSpec *pspec; 1102s # _ExtendedGDBusPropertyInfo *info; 1102s # gboolean ret; 1102s # ret = FALSE; 1102s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1102s # g_assert (info != NULL); 1102s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1102s # if (pspec == NULL) 1102s # { 1102s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1102s # } 1102s # else 1102s # { 1102s # if (info->use_gvariant) 1102s # g_value_set_variant (&value, variant); 1102s # else 1102s # g_dbus_gvariant_to_gvalue (variant, &value); 1102s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1102s # g_value_unset (&value); 1102s # ret = TRUE; 1102s # } 1102s # return ret; 1102s # } 1102s # 1102s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1102s # { 1102s # _com_acme_coyote_skeleton_handle_method_call, 1102s # _com_acme_coyote_skeleton_handle_get_property, 1102s # _com_acme_coyote_skeleton_handle_set_property, 1102s # {NULL} 1102s # }; 1102s # 1102s # static GDBusInterfaceInfo * 1102s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return com_acme_coyote_interface_info (); 1102s # } 1102s # 1102s # static GDBusInterfaceVTable * 1102s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1102s # { 1102s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1102s # } 1102s # 1102s # static GVariant * 1102s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1102s # 1102s # GVariantBuilder builder; 1102s # guint n; 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #else 1102s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # #endif 1102s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1102s # goto out; 1102s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1102s # { 1102s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1102s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1102s # { 1102s # GVariant *value; 1102s # 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); 1102s # if (value != NULL) 1102s # { 1102s # g_variant_take_ref (value); 1102s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1102s # g_variant_unref (value); 1102s # } 1102s # } 1102s # } 1102s # out: 1102s # return g_variant_builder_end (&builder); 1102s # } 1102s # 1102s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1102s # gboolean emit_changed = FALSE; 1102s # 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # { 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # skeleton->priv->changed_properties_idle_source = NULL; 1102s # emit_changed = TRUE; 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # 1102s # if (emit_changed) 1102s # _com_acme_coyote_emit_changed (skeleton); 1102s # } 1102s # 1102s # static void 1102s # _com_acme_coyote_on_signal_surprised ( 1102s # ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # 1102s # GList *connections, *l; 1102s # GVariant *signal_variant; 1102s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1102s # 1102s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1102s # for (l = connections; l != NULL; l = l->next) 1102s # { 1102s # GDBusConnection *connection = l->data; 1102s # g_dbus_connection_emit_signal (connection, 1102s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1102s # signal_variant, NULL); 1102s # } 1102s # g_variant_unref (signal_variant); 1102s # g_list_free_full (connections, g_object_unref); 1102s # } 1102s # 1102s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1102s # 1102s # #else 1102s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1102s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1102s # 1102s # #endif 1102s # static void 1102s # com_acme_coyote_skeleton_finalize (GObject *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # guint n; 1102s # for (n = 0; n < 1; n++) 1102s # g_value_unset (&skeleton->priv->properties[n]); 1102s # g_free (skeleton->priv->properties); 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # if (skeleton->priv->changed_properties_idle_source != NULL) 1102s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1102s # g_main_context_unref (skeleton->priv->context); 1102s # g_mutex_clear (&skeleton->priv->lock); 1102s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_get_property (GObject *object, 1102s # guint prop_id, 1102s # GValue *value, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # } 1102s # 1102s # static gboolean 1102s # _com_acme_coyote_emit_changed (gpointer user_data) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1102s # GList *l; 1102s # GVariantBuilder builder; 1102s # GVariantBuilder invalidated_builder; 1102s # guint num_changes; 1102s # 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1102s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1102s # #else 1102s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1102s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1102s # #endif 1102s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1102s # { 1102s # ChangedProperty *cp = l->data; 1102s # GVariant *variant; 1102s # const GValue *cur_value; 1102s # 1102s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1102s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1102s # { 1102s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1102s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1102s # g_variant_unref (variant); 1102s # num_changes++; 1102s # } 1102s # } 1102s # if (num_changes > 0) 1102s # { 1102s # GList *connections, *ll; 1102s # GVariant *signal_variant; 1102s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1102s # &builder, &invalidated_builder)); 1102s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1102s # for (ll = connections; ll != NULL; ll = ll->next) 1102s # { 1102s # GDBusConnection *connection = ll->data; 1102s # 1102s # g_dbus_connection_emit_signal (connection, 1102s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1102s # "org.freedesktop.DBus.Properties", 1102s # "PropertiesChanged", 1102s # signal_variant, 1102s # NULL); 1102s # } 1102s # g_variant_unref (signal_variant); 1102s # g_list_free_full (connections, g_object_unref); 1102s # } 1102s # else 1102s # { 1102s # g_variant_builder_clear (&builder); 1102s # g_variant_builder_clear (&invalidated_builder); 1102s # } 1102s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1102s # skeleton->priv->changed_properties = NULL; 1102s # skeleton->priv->changed_properties_idle_source = NULL; 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # return FALSE; 1102s # } 1102s # 1102s # static void 1102s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1102s # { 1102s # ChangedProperty *cp; 1102s # GList *l; 1102s # cp = NULL; 1102s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1102s # { 1102s # ChangedProperty *i_cp = l->data; 1102s # if (i_cp->info == info) 1102s # { 1102s # cp = i_cp; 1102s # break; 1102s # } 1102s # } 1102s # if (cp == NULL) 1102s # { 1102s # cp = g_new0 (ChangedProperty, 1); 1102s # cp->prop_id = prop_id; 1102s # cp->info = info; 1102s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1102s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1102s # g_value_copy (orig_value, &cp->orig_value); 1102s # } 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_notify (GObject *object, 1102s # GParamSpec *pspec G_GNUC_UNUSED) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # if (skeleton->priv->changed_properties != NULL && 1102s # skeleton->priv->changed_properties_idle_source == NULL) 1102s # { 1102s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1102s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1102s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1102s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1102s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1102s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_set_property (GObject *object, 1102s # guint prop_id, 1102s # const GValue *value, 1102s # GParamSpec *pspec) 1102s # { 1102s # const _ExtendedGDBusPropertyInfo *info; 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1102s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # g_object_freeze_notify (object); 1102s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1102s # { 1102s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1102s # info->emits_changed_signal) 1102s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1102s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1102s # g_object_notify_by_pspec (object, pspec); 1102s # } 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # g_object_thaw_notify (object); 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1102s # { 1102s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1102s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1102s # #else 1102s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1102s # #endif 1102s # 1102s # g_mutex_init (&skeleton->priv->lock); 1102s # skeleton->priv->context = g_main_context_ref_thread_default (); 1102s # skeleton->priv->properties = g_new0 (GValue, 1); 1102s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1102s # } 1102s # 1102s # static const gchar * 1102s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1102s # { 1102s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1102s # const gchar *value; 1102s # g_mutex_lock (&skeleton->priv->lock); 1102s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1102s # g_mutex_unlock (&skeleton->priv->lock); 1102s # return value; 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1102s # { 1102s # GObjectClass *gobject_class; 1102s # GDBusInterfaceSkeletonClass *skeleton_class; 1102s # 1102s # gobject_class = G_OBJECT_CLASS (klass); 1102s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1102s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1102s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1102s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1102s # 1102s # 1102s # com_acme_coyote_override_properties (gobject_class, 1); 1102s # 1102s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1102s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1102s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1102s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1102s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1102s # 1102s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1102s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1102s # #endif 1102s # } 1102s # 1102s # static void 1102s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1102s # { 1102s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1102s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1102s # } 1102s # 1102s # /** 1102s # * com_acme_coyote_skeleton_new: 1102s # * 1102s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1102s # * 1102s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1102s # */ 1102s # ComAcmeCoyote * 1102s # com_acme_coyote_skeleton_new (void) 1102s # { 1102s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1102s # } 1102s # Error: 1102s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1102s # gdbus-codegen: /usr/bin/gdbus-codegen 1102s # tmpdir: /tmp/tmprc2uq8j9 1102s # /tmp/tmprc2uq8j9/tmpoar5zb_z.xml: 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprc2uq8j9/tmpoar5zb_z.xml', '--output', '-', '--header'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifndef __STDOUT__ 1102s # #define __STDOUT__ 1102s # 1102s # #include 1102s # 1102s # G_BEGIN_DECLS 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for FDPassing */ 1102s # 1102s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1102s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1102s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1102s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1102s # 1102s # struct _FDPassing; 1102s # typedef struct _FDPassing FDPassing; 1102s # typedef struct _FDPassingIface FDPassingIface; 1102s # 1102s # struct _FDPassingIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # gboolean (*handle_hello_fd) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *arg_greeting); 1102s # 1102s # gboolean (*handle_no_annotation) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale); 1102s # 1102s # gboolean (*handle_no_annotation_nested) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *arg_files); 1102s # 1102s # }; 1102s # 1102s # GType fdpassing_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1102s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void fdpassing_complete_hello_fd ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *response); 1102s # 1102s # void fdpassing_complete_no_annotation ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *response, 1102s # const gchar *response_locale); 1102s # 1102s # void fdpassing_complete_no_annotation_nested ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void fdpassing_call_hello_fd ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GUnixFDList *fd_list, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_hello_fd_finish ( 1102s # FDPassing *proxy, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_hello_fd_sync ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GUnixFDList *fd_list, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_finish ( 1102s # FDPassing *proxy, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation_nested ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_finish ( 1102s # FDPassing *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1102s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1102s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1102s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1102s # 1102s # typedef struct _FDPassingProxy FDPassingProxy; 1102s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1102s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1102s # 1102s # struct _FDPassingProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # FDPassingProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void fdpassing_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # FDPassing *fdpassing_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1102s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1102s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1102s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1102s # 1102s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1102s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1102s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1102s # 1102s # struct _FDPassingSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # FDPassingSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # FDPassing *fdpassing_skeleton_new (void); 1102s # 1102s # 1102s # G_END_DECLS 1102s # 1102s # #endif /* __STDOUT__ */ 1102s # Error: 1102s # 1102s # /tmp/tmprc2uq8j9/tmpfdugu6nz.xml: 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprc2uq8j9/tmpfdugu6nz.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifndef __STDOUT__ 1102s # #define __STDOUT__ 1102s # 1102s # #include 1102s # 1102s # G_BEGIN_DECLS 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for FDPassing */ 1102s # 1102s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1102s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1102s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1102s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1102s # 1102s # struct _FDPassing; 1102s # typedef struct _FDPassing FDPassing; 1102s # typedef struct _FDPassingIface FDPassingIface; 1102s # 1102s # struct _FDPassingIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # gboolean (*handle_hello_fd) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *arg_greeting); 1102s # 1102s # gboolean (*handle_no_annotation) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale); 1102s # 1102s # gboolean (*handle_no_annotation_nested) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *arg_files); 1102s # 1102s # }; 1102s # 1102s # GType fdpassing_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1102s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void fdpassing_complete_hello_fd ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *response); 1102s # 1102s # void fdpassing_complete_no_annotation ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GVariant *response, 1102s # const gchar *response_locale); 1102s # 1102s # void fdpassing_complete_no_annotation_nested ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void fdpassing_call_hello_fd ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GUnixFDList *fd_list, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_hello_fd_finish ( 1102s # FDPassing *proxy, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_hello_fd_sync ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GUnixFDList *fd_list, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_finish ( 1102s # FDPassing *proxy, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation_nested ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_finish ( 1102s # FDPassing *proxy, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1102s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1102s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1102s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1102s # 1102s # typedef struct _FDPassingProxy FDPassingProxy; 1102s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1102s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1102s # 1102s # struct _FDPassingProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # FDPassingProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void fdpassing_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # FDPassing *fdpassing_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError ok - glib/codegen.py.test 1102s # Running test: glib/protocol.test 1102s **error); 1102s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1102s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1102s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1102s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1102s # 1102s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1102s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1102s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1102s # 1102s # struct _FDPassingSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # FDPassingSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # FDPassing *fdpassing_skeleton_new (void); 1102s # 1102s # 1102s # G_END_DECLS 1102s # 1102s # #endif /* __STDOUT__ */ 1102s # Error: 1102s # 1102s # /tmp/tmprc2uq8j9/tmp2j8_26g7.xml: 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # 1102s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprc2uq8j9/tmp2j8_26g7.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1102s # Return code: 0 1102s # Output: 1102s # /* 1102s # * This file is generated by gdbus-codegen, do not modify it. 1102s # * 1102s # * The license of this code is the same as for the D-Bus interface description 1102s # * it was derived from. Note that it links to GLib, so must comply with the 1102s # * LGPL linking clauses. 1102s # */ 1102s # 1102s # #ifndef __STDOUT__ 1102s # #define __STDOUT__ 1102s # 1102s # #include 1102s # 1102s # G_BEGIN_DECLS 1102s # 1102s # 1102s # /* ------------------------------------------------------------------------ */ 1102s # /* Declarations for FDPassing */ 1102s # 1102s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1102s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1102s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1102s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1102s # 1102s # struct _FDPassing; 1102s # typedef struct _FDPassing FDPassing; 1102s # typedef struct _FDPassingIface FDPassingIface; 1102s # 1102s # struct _FDPassingIface 1102s # { 1102s # GTypeInterface parent_iface; 1102s # 1102s # gboolean (*handle_hello_fd) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *arg_greeting); 1102s # 1102s # gboolean (*handle_no_annotation) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale); 1102s # 1102s # gboolean (*handle_no_annotation_nested) ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # GVariant *arg_files); 1102s # 1102s # }; 1102s # 1102s # GType fdpassing_get_type (void) G_GNUC_CONST; 1102s # 1102s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1102s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1102s # 1102s # 1102s # /* D-Bus method call completion functions: */ 1102s # void fdpassing_complete_hello_fd ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # const gchar *response); 1102s # 1102s # void fdpassing_complete_no_annotation ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list, 1102s # GVariant *response, 1102s # const gchar *response_locale); 1102s # 1102s # void fdpassing_complete_no_annotation_nested ( 1102s # FDPassing *object, 1102s # GDBusMethodInvocation *invocation, 1102s # GUnixFDList *fd_list); 1102s # 1102s # 1102s # 1102s # /* D-Bus method calls: */ 1102s # void fdpassing_call_hello_fd ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_hello_fd_finish ( 1102s # FDPassing *proxy, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_hello_fd_sync ( 1102s # FDPassing *proxy, 1102s # const gchar *arg_greeting, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # gchar **out_response, 1102s # GUnixFDList **out_fd_list, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_finish ( 1102s # FDPassing *proxy, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GUnixFDList **out_fd_list, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_greeting, 1102s # const gchar *arg_greeting_locale, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # GVariant **out_response, 1102s # gchar **out_response_locale, 1102s # GUnixFDList **out_fd_list, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_call_no_annotation_nested ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_finish ( 1102s # FDPassing *proxy, 1102s # GUnixFDList **out_fd_list, 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # 1102s # gboolean fdpassing_call_no_annotation_nested_sync ( 1102s # FDPassing *proxy, 1102s # GVariant *arg_files, 1102s # GDBusCallFlags call_flags, 1102s # gint timeout_msec, 1102s # GUnixFDList *fd_list, 1102s # GUnixFDList **out_fd_list, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1102s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1102s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1102s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1102s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1102s # 1102s # typedef struct _FDPassingProxy FDPassingProxy; 1102s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1102s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1102s # 1102s # struct _FDPassingProxy 1102s # { 1102s # /*< private >*/ 1102s # GDBusProxy parent_instance; 1102s # FDPassingProxyPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingProxyClass 1102s # { 1102s # GDBusProxyClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1102s # #endif 1102s # 1102s # void fdpassing_proxy_new ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # FDPassing *fdpassing_proxy_new_sync ( 1102s # GDBusConnection *connection, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # void fdpassing_proxy_new_for_bus ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GAsyncReadyCallback callback, 1102s # gpointer user_data); 1102s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1102s # GAsyncResult *res, 1102s # GError **error); 1102s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1102s # GBusType bus_type, 1102s # GDBusProxyFlags flags, 1102s # const gchar *name, 1102s # const gchar *object_path, 1102s # GCancellable *cancellable, 1102s # GError **error); 1102s # 1102s # 1102s # /* ---- */ 1102s # 1102s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1102s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1102s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1102s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1102s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1102s # 1102s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1102s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1102s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1102s # 1102s # struct _FDPassingSkeleton 1102s # { 1102s # /*< private >*/ 1102s # GDBusInterfaceSkeleton parent_instance; 1102s # FDPassingSkeletonPrivate *priv; 1102s # }; 1102s # 1102s # struct _FDPassingSkeletonClass 1102s # { 1102s # GDBusInterfaceSkeletonClass parent_class; 1102s # }; 1102s # 1102s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1102s # 1102s # #if GLIB_CHECK_VERSION(2, 44, 0) 1102s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1102s # #endif 1102s # 1102s # FDPassing *fdpassing_skeleton_new (void); 1102s # 1102s # 1102s # G_END_DECLS 1102s # 1102s # #endif /* __STDOUT__ */ 1102s # Error: 1102s 1..39 1102s TAP version 14 1102s # random seed: R02S29855d55d030293481be8b2f66f8e9c4 1102s 1..9 1102s # Start of glib tests 1102s # Start of testing tests 1102s # Start of protocol tests 1102s ok 1 /glib/testing/protocol/debug 1102s ok 2 /glib/testing/protocol/info 1102s ok 3 /glib/testing/protocol/message 1102s ok 4 /glib/testing/protocol/warning 1102s ok 5 /glib/testing/protocol/critical 1102s ok 6 /glib/testing/protocol/error 1102s ok 7 /glib/testing/protocol/gtest-message 1102s ok 8 /glib/testing/protocol/test-message 1102s ok 9 /glib/testing/protocol/test-error 1102s # End of protocol tests 1102s # End of testing tests 1102s # End of glib tests 1102s ok - glib/protocol.test 1102s # Running test: glib/win32-appinfo.test 1102s ok - glib/win32-appinfo.test 1102s # Running test: glib/portal-support-flatpak-network-only.test 1102s ok - glib/portal-support-flatpak-network-only.test 1102s # Running test: glib/642026.test 1102s TAP version 14 1102s # random seed: R02S032ea8a33d2c55d9e0cdcf647997c962 1102s 1..5 1102s # Start of appinfo tests 1102s ok 1 /appinfo/utf16-strfuncs 1102s ok 2 /appinfo/win32-extract-executable 1102s ok 3 /appinfo/win32-rundll32-fixup 1102s ok 4 /appinfo/win32-parse-filename 1102s ok 5 /appinfo/win32-utf16-conversion-fail 1102s # Start of subprocess tests 1102s # End of subprocess tests 1102s # End of appinfo tests 1102s TAP version 14 1102s # random seed: R02Sf74c0f35d14d39e8c83cf4d153e8cb6a 1102s 1..1 1102s # Start of portal-support tests 1102s # Start of flatpak tests 1102s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/home 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/cache 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/system-config2 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/config 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/system-data2 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/data 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/state 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/runtime 1102s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_97A052/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1102s ok 1 /portal-support/flatpak/network 1102s # End of flatpak tests 1102s # End of portal-support tests 1102s TAP version 14 1102s # random seed: R02S76cc53ad18890a0240df97d89d629198 1102s 1..1 1102s # Start of glib tests 1102s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1102s ok 1 /glib/642026 1102s # End of glib tests 1102s ok - glib/642026.test 1102s # Running test: glib/gio-tool.py.test 1102s TAP version 13 1102s ok 1 __main__.TestGioTool.test_help 1102s # gio: /usr/bin/gio 1102s # tmpdir: /tmp/tmpcbf92haj 1102s # Running: ['/usr/bin/gio', '--help'] 1102s # Return code: 0 1102s # Output: 1102s # Usage: 1102s # gio COMMAND [ARGS…] 1102s # 1102s # Commands: 1102s # help Print help 1102s # version Print version 1102s # cat Concatenate files to standard output 1102s # copy Copy one or more files 1102s # info Show information about locations 1102s # launch Launch an application from a desktop file 1102s # list List the contents of locations 1102s # mime Get or set the handler for a mimetype 1102s # mkdir Create directories 1102s # monitor Monitor files and directories for changes 1102s # mount Mount or unmount the locations 1102s # move Move one or more files 1102s # open Open files with the default application 1102s # rename Rename a file 1102s # remove Delete one or more files 1102s # save Read from standard input and save 1102s # set Set a file attribute 1102s # trash Move files or directories to the trash 1102s # tree Lists the contents of locations in a tree 1102s # 1102s # Use “gio help COMMAND†to get detailed help. 1102s # Error: 1102s # 1102s # Running: ['/usr/bin/gio', 'help'] 1102s # Return code: 0 1102s # Output: 1102s # Usage: 1102s # gio COMMAND [ARGS…] 1102s # 1102s # Commands: 1102s # help Print help 1102s # version Print version 1102s # cat Concatenate files to standard output 1102s # copy Copy one or more files 1102s # info Show information about locations 1102s # launch Launch an application from a desktop file 1102s # list List the contents of locations 1102s # mime Get or set the handler for a mimetype 1102s # mkdir Create directories 1102s # monitor Monitor files and directories for changes 1102s # mount Mount or unmount the locations 1102s # move Move one or more files 1102s # open Open files with the default application 1102s # rename Rename a file 1102s # remove Delete one or more files 1102s # save Read from standard input and save 1102s # set Set a file attribute 1102s # trash Move files or directories to the trash 1102s # tree Lists the contents of locations in a tree 1102s # 1102s # Use “gio help COMMAND†to get detailed help. 1102s # Error: 1102s ok 2 __main__.TestGioTool.test_info_non_default_attributes 1102s # gio: /usr/bin/gio 1102s # tmpdir: /tmp/tmp8jvob667 1102s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmp8jvob667/tmpolmkne_3'] 1102s # Return code: 0 1102s # Output: 1102s # uri: file:///tmp/tmp8jvob667/tmpolmkne_3 1102s # local path: /tmp/tmp8jvob667/tmpolmkne_3 1102s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 1102s # attributes: 1102s # standard::content-type: application/x-zerosize 1102s # Error: 1102s ok 3 __main__.TestGioTool.test_no_args 1102s # gio: /usr/bin/gio 1102s # tmpdir: /tmp/tmpz4rssjkm 1102s # Running: ['/usr/bin/gio'] 1102s # Return code: 1 1102s # Output: 1102s # 1102s # Error: 1102s # Usage: 1102s # gio COMMAND [ARGS…] 1102s # 1102s # Commands: 1102s # help Print help 1102s # version Print version 1102s # cat Concatenate files to standard output 1102s # copy Copy one or more files 1102s # info Show information about locations 1102s # launch Launch an application from a desktop file 1102s # list List the contents of locations 1102s # mime Get or set the handler for a mimetype 1102s # mkdir Create directories 1102s # monitor Monitor files and directories for changes 1102s # mount Mount or unmount the locations 1102s # move Move one or more files 1102s # open Open files with the default application 1102s # rename Rename a file 1102s # remove Delete one or more files 1102s # save Read from standard input and save 1102s # set Set a file attribute 1102s # trash Move files or directories to the trash 1102s # tree Lists the contents of locations in a tree 1102s # 1102s # Use “gio help COMMAND†to get detailed help. 1102s 1..3 1102s ok - glib/gio-tool.py.test 1102s # Running test: glib/gdbus-proxy-well-known-name.test 1102s TAP version 14 1102s # random seed: R02Se70a39d6edebb9cdaf3eba9ada4b15b0 1102s 1..1 1102s # Start of gdbus tests 1102s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/home 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/cache 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/system-config2 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/config 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/system-data2 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/data 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/state 1102s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_0D2V52/gdbus/proxy-well-known-name/.dirs/runtime 1102s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1102s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1102s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1102s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1102s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1102s ok 1 /gdbus/proxy-well-known-name 1102s # End of gdbus tests 1102s ok - glib/gdbus-proxy-well-known-name.test 1102s # Running test: glib/async-splice-output-stream.test 1102s TAP version 14 1102s # random seed: R02S022b9fc7e1f451e00c0cd98c24320bd7 1102s 1..5 1102s # Start of async-splice tests 1102s ok 1 /async-splice/copy-chunks 1102s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1102s ok 2 /async-splice/copy-chunks-threaded-input 1102s ok 3 /async-splice/copy-chunks-threaded-output 1102s ok 4 /async-splice/copy-chunks-threaded 1102s ok 5 /async-splice/cancelled 1102s # End of async-splice tests 1102s ok - glib/async-splice-output-stream.test 1102s # Running test: glib/gdbus-threading.test 1102s TAP version 14 1102s # random seed: R02Se8e13d3d04604fc3cd13a35541462b8e 1102s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1102s ok - glib/gdbus-threading.test 1102s # Running test: glib/vfs.test 1102s TAP version 14 1102s # random seed: R02S0f930866f887bef2e131c7c74ef0ef1f 1102s 1..3 1102s # Start of gvfs tests 1102s ok 1 /gvfs/local 1102s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1102s ok 2 /gvfs/register-scheme 1102s # Start of resource tests 1102s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1102s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1102s ok - glib/vfs.test 1102s ok 3 /gvfs/resource/malformed-escaping 1102s # End of resource tests 1102s # End of gvfs tests 1102s # Running test: glib/uri.test 1102s TAP version 14 1102s # random seed: R02S019720123cc362bbb87443998e4669f1 1102s 1..24 1102s # Start of uri tests 1102s ok 1 /uri/file-to-uri 1102s ok 2 /uri/file-from-uri 1102s ok 3 /uri/file-roundtrip 1102s ok 4 /uri/list 1102s # Test 0: %2Babc %4F 1102s # Test 1: %2Babc %4F 1102s # Test 2: %00abc %4F 1102s # Test 3: /cursors/none.png 1102s # Test 4: /cursors%2fbad-subdir/none.png 1102s # Test 5: %0 1102s # Test 6: %ra 1102s # Test 7: %2r 1102s # Test 8: Timm B?der 1102s # Test 9: (null) 1102s ok 5 /uri/unescape-string 1102s ok 6 /uri/unescape-segment 1102s # Test 0: abcdefgABCDEFG._~ 1102s # Test 1: :+ \\?# 1102s # Test 2: a+b:c 1102s # Test 3: a+b:c\303\234 1102s # Test 4: \374;\322 1102s # Test 5: \303\261\303( 1102s ok 7 /uri/escape-string 1102s ok 8 /uri/escape-bytes 1102s ok 9 /uri/scheme 1102s ok 10 /uri/build 1102s ok 11 /uri/split 1102s ok 12 /uri/is_valid 1102s ok 13 /uri/to-string 1102s ok 14 /uri/join 1102s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1102s # Combination 0 1102s # Combination 1 1102s # Combination 2 1102s # Combination 3 1102s # Combination 4 1102s # Combination 5 1102s # Combination 6 1102s # Combination 7 1102s # Combination 8 1102s # Combination 9 1102s # Combination 10 1102s # Combination 11 1102s # Combination 12 1102s # Combination 13 1102s # Combination 14 1102s # Combination 15 1102s # Combination 16 1102s # Combination 17 1102s # Combination 18 1102s # Combination 19 1102s # Combination 20 1102s # Combination 21 1102s # Combination 22 1102s # Combination 23 1102s # Combination 24 1102s # Combination 25 1102s # Combination 26 1102s # Combination 27 1102s # Combination 28 1102s # Combination 29 1102s # Combination 30 1102s # Combination 31 1102s # Combination 32 1102s # Combination 33 1102s # Combination 34 1102s # Combination 35 1102s # Combination 36 1102s # Combination 37 1102s # Combination 38 1102s # Combination 39 1102s # Combination 40 1102s # Combination 41 1102s # Combination 42 1102s # Combination 43 1102s # Combination 44 1102s # Combination 45 1102s # Combination 46 1102s # Combination 47 1102s # Combination 48 1102s # Combination 49 1102s # Combination 50 1102s # Combination 51 1102s # Combination 52 1102s # Combination 53 1102s # Combination 54 1102s # Combination 55 1102s # Combination 56 1102s # Combination 57 1102s # Combination 58 1102s # Combination 59 1102s # Combination 60 1102s # Combination 61 1102s # Combination 62 1102s # Combination 63 1102s # Combination 64 1102s # Combination 65 1102s # Combination 66 1102s # Combination 67 1102s # Combination 68 1102s # Combination 69 1102s # Combination 70 1102s # Combination 71 1102s # Combination 72 1102s # Combination 73 1102s # Combination 74 1102s # Combination 75 1102s # Combination 76 1102s # Combination 77 1102s # Combination 78 1102s # Combination 79 1102s # Combination 80 1102s # Combination 81 1102s # Combination 82 1102s # Combination 83 1102s # Combination 84 1102s # Combination 85 1102s # Combination 86 1102s # Combination 87 1102s # Combination 88 1102s # Combination 89 1102s # Combination 90 1102s # Combination 91 1102s # Combination 92 1102s # Combination 93 1102s # Combination 94 1102s # Combination 95 1102s # Combination 96 1102s # Combination 97 1102s # Combination 98 1102s # Combination 99 1102s # Combination 100 1102s # Combination 101 1102s # Combination 102 1102s # Combination 103 1102s # Combination 104 1102s # Combination 105 1102s # Combination 106 1102s # Combination 107 1102s # Combination 108 1102s # Combination 109 1102s # Combination 110 1102s # Combination 111 1102s # Combination 112 1102s # Combination 113 1102s # Combination 114 1102s # Combination 115 1102s # Combination 116 1102s # Combination 117 1102s # Combination 118 1102s # Combination 119 1102s # Combination 120 1102s # Combination 121 1102s # Combination 122 1102s # Combination 123 1102s # Combination 124 1102s # Combination 125 1102s # Combination 126 1102s # Combination 127 1102s # Combination 128 1102s # Combination 129 1102s # Combination 130 1102s # Combination 131 1102s # Combination 132 1102s # Combination 133 1102s # Combination 134 1102s # Combination 135 1102s # Combination 136 1102s # Combination 137 1102s # Combination 138 1102s # Combination 139 1102s # Combination 140 1102s # Combination 141 1102s # Combination 142 1102s # Combination 143 1102s # Combination 144 1102s # Combination 145 1102s # Combination 146 1102s # Combination 147 1102s # Combination 148 1102s # Combination 149 1102s # Combination 150 1102s # Combination 151 1102s # Combination 152 1102s # Combination 153 1102s # Combination 154 1102s # Combination 155 1102s # Combination 156 1102s # Combination 157 1102s # Combination 158 1102s # Combination 159 1102s # Combination 160 1102s # Combination 161 1102s # Combination 162 1102s # Combination 163 1102s # Combination 164 1102s # Combination 165 1102s # Combination 166 1102s # Combination 167 1102s # Combination 168 1102s # Combination 169 1102s # Combination 170 1102s # Combination 171 1102s # Combination 172 1102s # Combination 173 1102s # Combination 174 1102s # Combination 175 1102s # Combination 176 1102s # Combination 177 1102s # Combination 178 1102s # Combination 179 1102s # Combination 180 1102s # Combination 181 1102s # Combination 182 1102s # Combination 183 1102s # Combination 184 1102s # Combination 185 1102s # Combination 186 1102s # Combination 187 1102s # Combination 188 1102s # Combination 189 1102s # Combination 190 1102s # Combination 191 1102s # Combination 192 1102s # Combination 193 1102s # Combination 194 1102s # Combination 195 1102s # Combination 196 1102s # Combination 197 1102s # Combination 198 1102s # Combination 199 1102s # Combination 200 1102s # Combination 201 1102s # Combination 202 1102s # Combination 203 1102s # Combination 204 1102s # Combination 205 1102s # Combination 206 1102s # Combination 207 1102s # Combination 208 1102s # Combination 209 1102s # Combination 210 1102s # Combination 211 1102s # Combination 212 1102s # Combination 213 1102s # Combination 214 1102s # Combination 215 1102s # Combination 216 1102s # Combination 217 1102s # Combination 218 1102s # Combination 219 1102s # Combination 220 1102s # Combination 221 1102s # Combination 222 1102s # Combination 223 1102s # Combination 224 1102s # Combination 225 1102s # Combination 226 1102s # Combination 227 1102s # Combination 228 1102s # Combination 229 1102s # Combination 230 1102s # Combination 231 1102s # Combination 232 1102s # Combination 233 1102s # Combination 234 1102s # Combination 235 1102s # Combination 236 1102s # Combination 237 1102s # Combination 238 1102s # Combination 239 1102s # Combination 240 1102s # Combination 241 1102s # Combination 242 1102s # Combination 243 1102s # Combination 244 1102s # Combination 245 1102s # Combination 246 1102s # Combination 247 1102s # Combination 248 1102s # Combination 249 1102s # Combination 250 1102s # Combination 251 1102s # Combination 252 1102s # Combination 253 1102s # Combination 254 1102s # Combination 255 1102s ok 15 /uri/join-split-round-trip 1102s ok 16 /uri/normalize 1102s # Start of unescape-bytes tests 1102s # Test 0: %00%00 1102s # Test 1: /cursors/none.png 1102s # Test 2: /cursors%2fbad-subdir/none.png 1102s # Test 3: %% 1102s # Test 4: % 1102s ok 17 /uri/unescape-bytes/nul-terminated 1102s # Test 0: %00%00 1102s # Test 1: /cursors/none.png 1102s # Test 2: /cursors%2fbad-subdir/none.png 1102s # Test 3: %% 1102s # Test 4: % 1102s ok 18 /uri/unescape-bytes/length 1102s # End of unescape-bytes tests 1102s # Start of parsing tests 1102s # Test 0: foo: 1102s # Test 1: file:/dev/null 1102s # Test 2: file:///dev/null 1102s # Test 3: ftp://user@host/path 1102s # Test 4: ftp://user@host:9999/path 1102s # Test 5: ftp://user:password@host/path 1102s # Test 6: ftp://user:password@host:9999/path 1102s # Test 7: ftp://user:password@host 1102s # Test 8: http://us%65r@host 1102s # Test 9: http://us%40r@host 1102s # Test 10: http://us%3ar@host 1102s # Test 11: http://us%2fr@host 1102s # Test 12: http://us%3fr@host 1102s # Test 13: http://host?query 1102s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1102s # 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 1102s # Test 16: http://space/%20 1102s # Test 17: http://delims/%3C%3E%23%25%22 1102s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1102s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1102s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1102s # Test 21: http://[3ffe:2a00:100:7031::1] 1102s # Test 22: http://[1080::8:800:200C:417A]/foo 1102s # Test 23: http://[::192.9.5.5]/ipng 1102s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1102s # Test 25: http://[2010:836B:4179::836B:4179] 1102s # Test 26: http://host/path with spaces 1102s # Test 27: http://host/path 1102s # Test 28: http://host/path 1102s # Test 29: http://host 1102s # Test 30: http://host:999 1102s # Test 31: http://host/pa 1102s # th 1102s # Test 32: http: 1102s # //host/path 1102s # Test 33: http:// host/path 1102s # Test 34: http://host/path? 1102s # Test 35: http://host/path# 1102s # Test 36: http://host/path% 1102s # Test 37: http://h%ost/path 1102s # Test 38: http://host/path%% 1102s # Test 39: http://host/path%%% 1102s # Test 40: http://host/path%/x/ 1102s # Test 41: http://host/path%0x/ 1102s # Test 42: http://host/path%ax 1102s # Test 43: http://host/p?th/ 1102s # Test 44: HTTP://////////////// 1102s # Test 45: http://@host 1102s # Test 46: http://:@host 1102s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1102s # Test 48: http://example.com/.. 1102s # Test 49: foo0://host/path 1102s # Test 50: f0.o://host/path 1102s # Test 51: http++://host/path 1102s # Test 52: http-ish://host/path 1102s # Test 53: http://[fe80::dead:beef%]/ 1102s # Test 54: http://[fe80::dead:beef%em1]/ 1102s # Test 55: http://[fe80::dead:beef%em1]/ 1102s # Test 56: http://[fe80::dead:beef%25em1]/ 1102s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1102s # Test 58: http://[fe80::dead:beef%25em%31]/ 1102s # Test 59: http://[fe80::dead:beef%10]/ 1102s # Test 60: http://[fe80::dead:beef%10]/ 1102s # Test 61: http://[fe80::dead:beef%25]/ 1102s # Test 62: http://[fe80::dead:beef%25]/ 1102s # Test 63: http://[192.168.0.1%25em1]/ 1102s # Test 64: http://[fe80::dead:beef%2em1]/ 1102s # Test 65: http://[fe80::dead:beef%2em1]/ 1102s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1102s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1102s # Test 68: http://xn--mixed-?p/ 1102s # Test 69: data:./// 1102s # Test 70: data:/.// 1102s ok 19 /uri/parsing/absolute 1102s ok 20 /uri/parsing/relative 1102s # End of parsing tests 1102s # Start of iter-params tests 1102s # URI 0: p1=foo&p2=bar;p3=baz 1102s # URI 1: p1=foo&p2=bar 1102s # URI 2: p1=foo&&P1=bar 1102s # URI 3: %00=foo 1102s # URI 4: p1=%00 1102s # URI 5: p1=foo&p1=bar 1102s # URI 6: p1=foo&P1=bar 1102s # URI 7: =% 1102s # URI 8: = 1102s # URI 9: foo 1102s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1102s ok 21 /uri/iter-params/nul-terminated 1102s # URI 0: p1=foo&p2=bar;p3=baz 1102s # URI 1: p1=foo&p2=bar 1102s # URI 2: p1=foo&&P1=bar 1102s # URI 3: %00=foo 1102s # URI 4: p1=%00 1102s # URI 5: p1=foo&p1=bar 1102s # URI 6: p1=foo&P1=bar 1102s # URI 7: =% 1102s # URI 8: = 1102s # URI 9: foo 1102s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1102s ok 22 /uri/iter-params/length 1102s # End of iter-params tests 1102s # Start of parse-params tests 1102s # URI 0: p1=foo&p2=bar;p3=baz 1102s # URI 1: p1=foo&p2=bar 1102s # URI 2: p1=foo&&P1=bar 1102s # URI 3: %00=foo 1102s # URI 4: p1=%00 1102s # URI 5: p1=foo&p1=bar 1102s # URI 6: p1=foo&P1=bar 1102s # URI 7: =% 1102s # URI 8: = 1102s # URI 9: foo 1102s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1102s ok 23 /uri/parse-params/nul-terminated 1102s # URI 0: p1=foo&p2=bar;p3=baz 1102s # URI 1: p1=foo&p2=bar 1102s # URI 2: p1=foo&&P1=bar 1102s # URI 3: %00=foo 1102s # URI 4: p1=%00 1102s # URI 5: p1=foo&p1=bar 1102s # URI 6: p1=foo&P1=bar 1102s # URI 7: =% 1102s # URI 8: = 1102s # URI 9: foo 1102s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1102s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1102s ok 24 /uri/parse-params/length 1102s # End of parse-params tests 1102s # End of uri tests 1102s ok - glib/uri.test 1102s # Running test: glib/module-test-plugin.test 1102s TAP version 14 1102s # random seed: R02S340c9b730923776736571cabc02d0b56 1102s 1..3 1102s # Start of module tests 1102s ok 1 /module/basics 1102s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1102s ok 2 /module/invalid-libtool-archive 1102s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1102s ok 3 /module/local-binding 1102s # End of module tests 1102s ok - glib/module-test-plugin.test 1102s # Running test: glib/gsubprocess.test 1102s TAP version 14 1102s # random seed: R02Se0c53529eaa2549c1540ba8d96274783 1102s 1..84 1102s # Start of gsubprocess tests 1102s ok 1 /gsubprocess/noop 1102s ok 2 /gsubprocess/noop-all-to-null 1102s ok 3 /gsubprocess/noop-no-wait 1102s ok 4 /gsubprocess/noop-stdin-inherit 1102s ok 5 /gsubprocess/search-path 1102s ok 6 /gsubprocess/search-path-from-envp 1102s # Executing: glib/gsubprocess.test 1105s ok 7 /gsubprocess/signal 1105s # slow test /gsubprocess/signal executed in 3.42 secs 1105s ok 8 /gsubprocess/exit1 1105s ok 9 /gsubprocess/echo1 1105s ok 10 /gsubprocess/echo-merged 1105s ok 11 /gsubprocess/cat-utf8 1106s ok 12 /gsubprocess/cat-eof 1106s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1107s # Executing: glib/gsubprocess.test 1109s ok 13 /gsubprocess/multi1 1109s # slow test /gsubprocess/multi1 executed in 3.01 secs 1109s ok 14 /gsubprocess/communicate 1112s ok 15 /gsubprocess/terminate 1112s # slow test /gsubprocess/terminate executed in 2.97 secs 1112s ok 16 /gsubprocess/fail-initialization 1112s # Executing: glib/gsubprocess.test 1112s ok 17 /gsubprocess/env 1112s ok 18 /gsubprocess/cwd 1112s ok 19 /gsubprocess/launcher-close 1112s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1112s ok 20 /gsubprocess/stdout-file 1112s ok 21 /gsubprocess/stdout-fd 1112s ok 22 /gsubprocess/child-setup 1112s # GLib-DEBUG: setenv()/putenv() are 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 23 /gsubprocess/launcher-environment 1112s # Start of exit1 tests 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1112s ok 24 /gsubprocess/exit1/cancel 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1112s ok 25 /gsubprocess/exit1/cancel_in_cb 1112s # End of exit1 tests 1112s # Start of communicate tests 1112s ok 26 /gsubprocess/communicate/cancelled 1112s ok 27 /gsubprocess/communicate/async 1112s ok 28 /gsubprocess/communicate/utf8 1112s # hello world 1112s ok 29 /gsubprocess/communicate/no-pipes 1112s ok 30 /gsubprocess/communicate/separate-stderr 1112s ok 31 /gsubprocess/communicate/stdout-only 1112s # hello world 1112s ok 32 /gsubprocess/communicate/stderr-only 1112s ok 33 /gsubprocess/communicate/stdout-silence 1112s ok 34 /gsubprocess/communicate/nothing 1112s # Start of async tests 1112s ok 35 /gsubprocess/communicate/async/cancelled 1112s # hello world 1112s ok 36 /gsubprocess/communicate/async/no-pipes 1112s ok 37 /gsubprocess/communicate/async/separate-stderr 1112s ok 38 /gsubprocess/communicate/async/stdout-only 1112s # hello world 1112s ok 39 /gsubprocess/communicate/async/stderr-only 1112s ok 40 /gsubprocess/communicate/async/stdout-silence 1112s # Start of cancelled tests 1112s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1112s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1112s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1112s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1112s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1112s # End of cancelled tests 1112s # End of async tests 1112s # Start of utf8 tests 1112s ok 46 /gsubprocess/communicate/utf8/cancelled 1112s ok 47 /gsubprocess/communicate/utf8/async 1112s # hello world 1112s ok 48 /gsubprocess/communicate/utf8/no-pipes 1112s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1112s ok 50 /gsubprocess/communicate/utf8/stdout-only 1112s # hello world 1112s ok 51 /gsubprocess/communicate/utf8/stderr-only 1112s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1112s ok 53 /gsubprocess/communicate/utf8/invalid 1112s # Start of async tests 1112s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1112s # hello world 1113s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1113s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1113s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1113s # hello world 1113s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1113s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1113s ok 60 /gsubprocess/communicate/utf8/async/invalid 1113s # Start of cancelled tests 1113s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1113s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1113s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1113s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1113s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1113s # End of cancelled tests 1113s # End of async tests 1113s # Start of cancelled tests 1113s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1113s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1113s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1113s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1113s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1113s # End of cancelled tests 1113s # End of utf8 tests 1113s # Start of cancelled tests 1113s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1113s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1113s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1113s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1113s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1113s # End of cancelled tests 1113s # End of communicate tests 1113s # Start of env tests 1113s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1113s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1113s ok 76 /gsubprocess/env/inherit 1113s # End of env tests 1113s # Start of pass-fd tests 1113s ok 77 /gsubprocess/pass-fd/basic 1113s ok 78 /gsubprocess/pass-fd/empty-child-setup 1113s ok 79 /gsubprocess/pass-fd/inherit-fds 1113s # End of pass-fd tests 1113s # Start of fd-conflation tests 1113s ok 80 /gsubprocess/fd-conflation/basic 1113s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1113s ok 82 /gsubprocess/fd-conflation/inherit-fds 1113s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1113s # End of fd-conflation tests 1113s # Start of exit-status tests 1113s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1113s ok 84 /gsubprocess/exit-status/trapped 1113s # End of exit-status tests 1113s # End of gsubprocess tests 1113s ok - glib/gsubprocess.test 1113s # Running test: glib/custom-dispatch.test 1113s TAP version 14 1113s # random seed: R02S83e652660caae20ada8f1b13bb1bfba9 1113s 1..2 1113s # Start of properties tests 1113s # Start of custom-dispatch tests 1113s ok - glib/custom-dispatch.test 1113s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1113s ok 1 /properties/custom-dispatch/init 1113s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1113s ok 2 /properties/custom-dispatch/set 1113s # End of custom-dispatch tests 1113s # End of properties tests 1113s # Running test: glib/keyfile.test 1113s TAP version 14 1113s # random seed: R02Sabd1da4c96d73503fe7789a80aca75d2 1113s 1..36 1113s # Start of keyfile tests 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/line-ends/.dirs/runtime 1113s ok 1 /keyfile/line-ends 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/whitespace/.dirs/runtime 1113s ok 2 /keyfile/whitespace 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/comments/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/comments/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/comments/.dirs/runtime 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1113s ok 3 /keyfile/comments 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/listing/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/listing/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/listing/.dirs/runtime 1113s ok 4 /keyfile/listing 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/string/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/string/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/string/.dirs/runtime 1113s ok 5 /keyfile/string 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/boolean/.dirs/runtime 1113s ok 6 /keyfile/boolean 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/number/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/number/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/number/.dirs/runtime 1113s ok 7 /keyfile/number 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/locale-string/.dirs/runtime 1113s ok 8 /keyfile/locale-string 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/lists/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/lists/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/lists/.dirs/runtime 1113s ok 9 /keyfile/lists 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/lists-set-get/.dirs/runtime 1113s ok 10 /keyfile/lists-set-get 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/group-remove/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1113s ok 11 /keyfile/group-remove 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/key-remove/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1113s ok 12 /keyfile/key-remove 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/groups/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/groups/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/groups/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1113s ok 13 /keyfile/groups 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/duplicate-keys/.dirs/runtime 1113s ok 14 /keyfile/duplicate-keys 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1113s ok 15 /keyfile/duplicate-groups 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/duplicate-groups2/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1113s ok 16 /keyfile/duplicate-groups2 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/group-names/.dirs/runtime 1113s ok 17 /keyfile/group-names 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/key-names/.dirs/runtime 1113s ok 18 /keyfile/key-names 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/reload/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/reload/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/reload/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1113s ok 19 /keyfile/reload 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/int64/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/int64/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/int64/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1113s ok 20 /keyfile/int64 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/load/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/load/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/load/.dirs/runtime 1113s ok 21 /keyfile/load 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/save/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/save/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/save/.dirs/runtime 1113s ok 22 /keyfile/save 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/load-fail/.dirs/runtime 1113s ok 23 /keyfile/load-fail 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/non-utf8/.dirs/runtime 1113s ok 24 /keyfile/non-utf8 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/page-boundary/.dirs/runtime 1113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1113s ok 25 /keyfile/page-boundary 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/ref/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/ref/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/ref/.dirs/runtime 1113s ok 26 /keyfile/ref 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/replace-value/.dirs/runtime 1113s ok 27 /keyfile/replace-value 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/list-separator/.dirs/runtime 1113s ok 28 /keyfile/list-separator 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/empty-string/.dirs/runtime 1113s ok 29 /keyfile/empty-string 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/limbo/.dirs/runtime 1113s ok 30 /keyfile/limbo 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/utf8/.dirs/runtime 1113s # Testing invalid encoding ?non-UTF-8? 1113s # Testing invalid encoding ?UTF? 1113s # Testing invalid encoding ?UTF-9? 1113s ok 31 /keyfile/utf8 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/roundtrip/.dirs/runtime 1113s ok 32 /keyfile/roundtrip 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/bytes/.dirs/runtime 1113s ok 33 /keyfile/bytes 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/get-locale/.dirs/runtime 1113s ok 34 /keyfile/get-locale 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/free-when-not-last-ref/.dirs/runtime 1113s ok 35 /keyfile/free-when-not-last-ref 1113s # Start of locale-string tests 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_KR6152/keyfile/locale-string/multiple-loads/.dirs/runtime 1113s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1113s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1113s ok 36 /keyfile/locale-string/multiple-loads 1113s # End of locale-string tests 1113s # End of keyfile tests 1113s ok - glib/keyfile.test 1113s # Running test: glib/g-icon.test 1113s ok - glib/g-icon.test 1113s # Running test: glib/memory-monitor.test 1113s ok - glib/memory-monitor.test 1113s # Running test: glib/signals-refcount3.test 1113s TAP version 14 1113s # random seed: R02S5265bb2b12199fb9e67f073b106508a6 1113s 1..6 1113s # Start of icons tests 1113s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1113s ok 1 /icons/to-string 1113s ok 2 /icons/serialize 1113s ok 3 /icons/themed 1113s ok 4 /icons/emblemed 1113s ok 5 /icons/file 1113s ok 6 /icons/bytes 1113s # End of icons tests 1113s TAP version 14 1113s # random seed: R02S85b939d3389d8470d44ccf8644ae9631 1113s 1..1 1113s # Start of memory-monitor tests 1113s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1113s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 1113s ok 1 /memory-monitor/default 1113s # End of memory-monitor tests 1113s TAP version 14 1113s # random seed: R02S785ff5b2f2906d7964c2c2388dd1dd9a 1113s 1..1 1113s # Start of gobject tests 1113s # Start of refcount tests 1113s # init 0x8ca66a6ddd0 1113s # 1113s # init 0x8ca66a6a310 1113s # 1117s # Executing: glib/signals-refcount3.test 1118s # dispose 0x8ca66a6ddd0! 1118s # 1118s # dispose 0x8ca66a6a310! 1118s # 1118s ok 1 /gobject/refcount/signals 1118s # slow test /gobject/refcount/signals executed in 5.01 secs 1118s # End of refcount tests 1118s # End of gobject tests 1118s ok - glib/signals-refcount3.test 1118s # Running test: glib/properties-introspection.test 1118s TAP version 14 1118s # random seed: R02S200c23dd59e5a7018ef2ab61db6582f4 1118s 1..2 1118s # Start of properties tests 1118s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1118s ok 1 /properties/introspection 1118s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1118s ok 2 /properties/collision 1118s # End of properties tests 1118s ok - glib/properties-introspection.test 1118s # Running test: glib/defaultvalue.test 1118s TAP version 14 1118s # random seed: R02Sceda4c1f1e85a6029a3a1564a1f6ec0d 1118s 1..84 1118s # Start of Default Values tests 1118s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1118s ok 2 /Default Values/GAppLaunchContext 1118s ok 3 /Default Values/GApplicationCommandLine 1118s # skipping GApplication:is-remote 1118s ok 4 /Default Values/GApplication 1118s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1118s ok 6 /Default Values/GBindingGroup 1118s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1118s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1118s ok 9 /Default Values/GBytesIcon 1118s ok 10 /Default Values/GCancellable 1118s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1118s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1118s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1118s ok 14 /Default Values/GCredentials 1118s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1118s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1118s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1118s ok 18 /Default Values/GDBusAuthObserver 1118s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1118s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1118s ok 21 /Default Values/GDBusMessage 1118s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1118s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1118s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1118s ok 25 /Default Values/GDBusObjectProxy 1118s ok 26 /Default Values/GDBusObjectSkeleton 1118s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1118s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1118s ok 29 /Default Values/GEmblem 1118s ok 30 /Default Values/GEmblemedIcon 1118s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1118s ok 32 /Default Values/GFileInfo 1118s ok 33 /Default Values/GFileInputStream 1118s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1118s ok 35 /Default Values/GFileOutputStream 1118s ok 36 /Default Values/GFilenameCompleter 1118s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1118s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1118s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1118s ok 40 /Default Values/GInitiallyUnowned 1118s ok 41 /Default Values/GIOModule 1118s ok 42 /Default Values/GListStore 1118s ok 43 /Default Values/GMemoryInputStream 1118s ok 44 /Default Values/GMemoryOutputStream 1118s ok 45 /Default Values/GMenu 1118s ok 46 /Default Values/GMenuItem 1118s ok 47 /Default Values/GMountOperation 1118s ok 48 /Default Values/GNativeSocketAddress 1118s ok 49 /Default Values/GNetworkAddress 1118s ok 50 /Default Values/GNetworkService 1118s ok 51 /Default Values/GNotification 1118s ok 52 /Default Values/GObject 1118s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1118s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1118s # skipping GProxyAddressEnumerator:proxy-resolver 1118s ok 54 /Default Values/GProxyAddressEnumerator 1118s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1118s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1118s ok 57 /Default Values/GSignalGroup 1118s ok 58 /Default Values/GSimpleAction 1118s ok 59 /Default Values/GSimpleActionGroup 1118s ok 60 /Default Values/GSimpleAsyncResult 1118s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1118s ok 62 /Default Values/GSimplePermission 1118s ok 63 /Default Values/GSimpleProxyResolver 1118s # skipping GSocketClient:proxy-resolver 1118s ok 64 /Default Values/GSocketClient 1118s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1118s ok 66 /Default Values/GSocket # SKIP initialization failed 1118s ok 67 /Default Values/GSocketListener 1118s ok 68 /Default Values/GSocketService 1118s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1118s ok 70 /Default Values/GSubprocessLauncher 1118s # GLib-GIO-DEBUG: GTask 0x2856e15af30 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1118s ok 71 /Default Values/GTask 1118s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1118s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1118s ok 74 /Default Values/GTestDBus 1118s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1118s ok 76 /Default Values/GThreadedSocketService 1118s ok 77 /Default Values/GTlsInteraction 1118s ok 78 /Default Values/GTlsPassword 1118s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1118s ok 80 /Default Values/GUnixFDList 1118s ok 81 /Default Values/GVfs 1118s ok 82 /Default Values/GVolumeMonitor 1118s ok 83 /Default Values/GZlibCompressor 1118s ok 84 /Default Values/GZlibDecompressor 1118s # End of Default Values tests 1118s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1118s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1118s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1118s ok - glib/defaultvalue.test 1118s # Running test: glib/closure-refcount.test 1118s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1118s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1118s TAP version 14 1118s # random seed: R02S52979c1212f7b6bd2074e6a25ace3f6f 1118s 1..1 1118s # Start of closure tests 1118s # Init 0xa89f1df5d30 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from thread1 1118s # Yielding from main thread 1118s # Yielding from thread2 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from main thread 1118s # Yielding from thread1 1118s # Yielding from main thread 1118s # Yielding from thread2 1118s # Yielding from main thread 1118s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from thread1 1119s # Yielding from main thread 1119s # Yielding from thread2 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from thread1 1119s # Yielding from main thread 1119s # Yielding from thread2 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from main thread 1119s # Yielding from thread2 1119s # Yielding from thread1 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from thread2 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from thread1 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from thread2 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from thread1 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from main thread 1120s # Yielding from thread2 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from thread1 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from thread2 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from thread1 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from thread2 1121s # Yielding from thread1 1121s # Yielding from main thread 1121s # Yielding from main thread 1121s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from thread1 1122s # Yielding from thread2 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from thread2 1122s # Yielding from main thread 1122s # Yielding from thread1 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from thread2 1122s # Yielding from main thread 1122s # Executing: glib/closure-refcount.test 1122s # Yielding from thread1 1122s # Yielding from main thread 1122s # Yielding from main thread 1122s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread2 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread1 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread2 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread1 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread2 1123s # Yielding from main thread 1123s # Yielding from main thread 1124s # Yielding from main thread 1124s # Stopping 1124s # Stopped 1124s ok 1 /closure/refcount 1124s # slow test /closure/refcount executed in 5.93 secs 1124s # End of closure tests 1124s ok - glib/closure-refcount.test 1124s # Running test: glib/cache.test 1124s ok - glib/cache.test 1124s TAP version 14 1124s # random seed: R02S83c4d92257609b46a7f5b00779786fd0 1124s 1..1 1124s # Start of cache tests 1124s ok 1 /cache/basic 1124s # End of cache tests 1124s # Running test: glib/date.test 1124s TAP version 14 1124s # random seed: R02Saaa3d6db29eee0d88fe5efee7aedfb72 1124s 1..121 1124s # Start of date tests 1124s ok 1 /date/basic 1124s ok 2 /date/empty 1124s ok 3 /date/dmy 1124s ok 4 /date/julian 1124s ok 5 /date/compare 1124s ok 6 /date/dates 1124s ok 7 /date/strftime 1124s ok 8 /date/two-digit-years 1124s ok 9 /date/parse 1124s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1124s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1124s ok 11 /date/month_substring 1124s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1124s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1124s ok 13 /date/clamp 1124s ok 14 /date/order 1124s ok 15 /date/copy 1124s # Vector 0: 0000-00-00, invalid 1124s # Vector 1: 0001-01-01, valid 1124s # Vector 2: 0000-01-01, invalid 1124s # Vector 3: 2000-02-30, invalid 1124s # Vector 4: 2000-02-29, valid 1124s # Vector 5: 2001-02-29, invalid 1124s # Vector 6: 65535-01-01, valid 1124s ok 16 /date/valid-dmy 1124s # Start of parse tests 1124s # Test 0 1124s # Test 1 1124s ok 17 /date/parse/invalid 1124s # End of parse tests 1124s # Start of year tests 1124s ok 18 /date/year/1 1124s ok 19 /date/year/2 1124s ok 20 /date/year/3 1124s ok 21 /date/year/4 1124s ok 22 /date/year/5 1124s ok 23 /date/year/6 1124s ok 24 /date/year/7 1124s ok 25 /date/year/8 1124s ok 26 /date/year/9 1124s ok 27 /date/year/10 1124s ok 28 /date/year/11 1124s ok 29 /date/year/12 1124s ok 30 /date/year/13 1124s ok 31 /date/year/14 1124s ok 32 /date/year/98 1124s ok 33 /date/year/99 1124s ok 34 /date/year/100 1124s ok 35 /date/year/101 1124s ok 36 /date/year/102 1124s ok 37 /date/year/103 1124s ok 38 /date/year/397 1124s ok 39 /date/year/398 1124s ok 40 /date/year/399 1124s ok 41 /date/year/400 1124s ok 42 /date/year/401 1124s ok 43 /date/year/402 1124s ok 44 /date/year/403 1124s ok 45 /date/year/404 1124s ok 46 /date/year/405 1124s ok 47 /date/year/406 1124s ok 48 /date/year/1598 1124s ok 49 /date/year/1599 1124s ok 50 /date/year/1600 1124s ok 51 /date/year/1601 1124s ok 52 /date/year/1602 1124s ok 53 /date/year/1650 1124s ok 54 /date/year/1651 1124s ok 55 /date/year/1897 1124s ok 56 /date/year/1898 1124s ok 57 /date/year/1899 1124s ok 58 /date/year/1900 1124s ok 59 /date/year/1901 1124s ok 60 /date/year/1902 1124s ok 61 /date/year/1903 1124s ok 62 /date/year/1961 1124s ok 63 /date/year/1962 1124s ok 64 /date/year/1963 1124s ok 65 /date/year/1964 1124s ok 66 /date/year/1965 1124s ok 67 /date/year/1967 1124s ok 68 /date/year/1968 1124s ok 69 /date/year/1969 1124s ok 70 /date/year/1970 1124s ok 71 /date/year/1971 1124s ok 72 /date/year/1972 1124s ok 73 /date/year/1973 1124s ok 74 /date/year/1974 1124s ok 75 /date/year/1975 1124s ok 76 /date/year/1976 1124s ok 77 /date/year/1977 1124s ok 78 /date/year/1978 1124s ok 79 /date/year/1979 1124s ok 80 /date/year/1980 1124s ok 81 /date/year/1981 1124s ok 82 /date/year/1982 1124s ok 83 /date/year/1983 1124s ok 84 /date/year/1984 1124s ok 85 /date/year/1985 1124s ok 86 /date/year/1986 1124s ok 87 /date/year/1987 1124s ok 88 /date/year/1988 1124s ok 89 /date/year/1989 1124s ok 90 /date/year/1990 1124s ok 91 /date/year/1991 1124s ok 92 /date/year/1992 1124s ok 93 /date/year/1993 1124s ok 94 /date/year/1994 1124s ok 95 /date/year/1995 1124s ok 96 /date/year/1996 1124s ok 97 /date/year/1997 1124s ok 98 /date/year/1998 1124s ok 99 /date/year/1999 1124s ok 100 /date/year/2000 1124s ok 101 /date/year/2001 1124s ok 102 /date/year/2002 1124s ok 103 /date/year/2003 1124s ok 104 /date/year/2004 1124s ok 105 /date/year/2005 1124s ok 106 /date/year/2006 1124s ok 107 /date/year/2007 1124s ok 108 /date/year/2008 1124s ok 109 /date/year/2009 1124s ok 110 /date/year/2010 1124s ok 111 /date/year/2011 1124s ok 112 /date/year/2012 1124s ok 113 /date/year/3000 1124s ok 114 /date/year/3001 1124s ok 115 /date/year/3002 1124s ok 116 /date/year/3998 1124s ok 117 /date/year/3999 1124s ok 118 /date/year/4000 1124s ok 119 /date/year/4001 1124s ok 120 /date/year/4002 1124s ok 121 /date/year/4003 1124s # End of year tests 1124s # End of date tests 1124s ok - glib/date.test 1124s # Running test: glib/atomic-c-99.test 1124s TAP version 14 1124s # random seed: R02S032fd7575b4965620b2950975b6938cf 1124s 1..2 1124s # Start of atomic tests 1124s ok 1 /atomic/types 1124s ok - glib/atomic-c-99.test 1124s ok 2 /atomic/threaded 1124s # End of atomic tests 1124s # Running test: glib/simple-async-result.test 1124s TAP version 14 1124s # random seed: R02S199593e2d7ff8159aba182ffce1ee408 1124s 1..2 1124s # Start of gio tests 1124s # Start of simple-async-result tests 1124s ok 1 /gio/simple-async-result/test 1124s # GLib-GIO-DEBUG: GTask 0x1ca035260040 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1124s ok 2 /gio/simple-async-result/valid 1124s # End of simple-async-result tests 1124s # End of gio tests 1124s ok - glib/simple-async-result.test 1124s # Running test: glib/private.test 1124s TAP version 14 1124s # random seed: R02S7dd81b65b7ab863e4c4164b0b2592df1 1124s 1..8 1124s # Start of thread tests 1124s ok 1 /thread/private1 1125s ok 2 /thread/private2 1125s # slow test /thread/private2 executed in 1.08 secs 1125s ok 3 /thread/private3 1125s ok 4 /thread/staticprivate1 1125s ok 5 /thread/staticprivate2 1125s ok 6 /thread/staticprivate3 1126s ok 7 /thread/staticprivate4 1126s # slow test /thread/staticprivate4 executed in 1.08 secs 1126s ok 8 /thread/staticprivate5 1126s # End of thread tests 1126s ok - glib/private.test 1126s # Running test: glib/dynamictype.test 1126s TAP version 14 1126s # random seed: R02S1f01b045ba45c59e3947a269a3180d06 1126s 1..2 1126s # Start of gobject tests 1126s ok 1 /gobject/dynamic-type 1126s # Start of dynamic-type tests 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1126s ok 2 /gobject/dynamic-type/query 1126s # End of dynamic-type tests 1126s # End of gobject tests 1126s ok - glib/dynamictype.test 1126s # Running test: glib/gdbus-serialization.test 1126s TAP version 14 1126s # random seed: R02S0b043431bd0b8cca4c675501bcd5fee8 1126s 1..18 1126s # Start of gdbus tests 1126s # Start of message-serialize tests 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/basic/.dirs/runtime 1126s ok 1 /gdbus/message-serialize/basic 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/complex/.dirs/runtime 1126s ok 2 /gdbus/message-serialize/complex 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/invalid/.dirs/runtime 1126s ok 3 /gdbus/message-serialize/invalid 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/.dirs/runtime 1126s ok 4 /gdbus/message-serialize/header-checks 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/double-array/.dirs/runtime 1126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1126s ok 5 /gdbus/message-serialize/double-array 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/empty-structure/.dirs/runtime 1126s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1126s ok 6 /gdbus/message-serialize/empty-structure 1126s # Start of header-checks tests 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1126s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1126s ok 7 /gdbus/message-serialize/header-checks/valid 1126s # End of header-checks tests 1126s # End of message-serialize tests 1126s # Start of message-parse tests 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1126s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/non-signature-header/.dirs/runtime 1126s ok 9 /gdbus/message-parse/non-signature-header 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-signature-header/.dirs/runtime 1126s ok 10 /gdbus/message-parse/empty-signature-header 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1126s ok 11 /gdbus/message-parse/multiple-signature-header 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1126s ok 12 /gdbus/message-parse/over-long-signature-header 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1126s ok 13 /gdbus/message-parse/deep-header-nesting 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1126s ok 14 /gdbus/message-parse/deep-body-nesting 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/truncated/.dirs/runtime 1126s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1126s ok 15 /gdbus/message-parse/truncated 1126s ok - glib/gdbus-serialization.test 1126s # Running test: glib/test-printf.test 1126s ok - glib/test-printf.test 1126s # Running test: glib/socket.test 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/empty-structure/.dirs/runtime 1126s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1126s ok 16 /gdbus/message-parse/empty-structure 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/missing-header/.dirs/runtime 1126s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1126s ok 17 /gdbus/message-parse/missing-header 1126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/home 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/cache 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/config 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/data 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/state 1126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_3REA62/gdbus/message-parse/invalid-header-type/.dirs/runtime 1126s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1126s ok 18 /gdbus/message-parse/invalid-header-type 1126s # End of message-parse tests 1126s # End of gdbus tests 1126s TAP version 14 1126s # random seed: R02S5c927ebecb03ad4657ec9f58054deb7f 1126s 1..22 1126s # Start of snprintf tests 1126s ok 1 /snprintf/retval-and-trunc 1126s ok 2 /snprintf/%d 1126s ok 3 /snprintf/%d-invalid 1126s ok 4 /snprintf/%o 1126s ok 5 /snprintf/%u 1126s ok 6 /snprintf/%x 1126s ok 7 /snprintf/%X 1126s ok 8 /snprintf/%f 1126s ok 9 /snprintf/%e 1126s ok 10 /snprintf/%c 1126s ok 11 /snprintf/%s 1126s ok 12 /snprintf/%n 1126s ok 13 /snprintf/test-percent 1126s ok 14 /snprintf/test-positional-params 1126s ok 15 /snprintf/test-64bit 1126s # End of snprintf tests 1126s # Start of printf tests 1126s ok 16 /printf/test-percent 1126s ok 17 /printf/test-positional-params 1126s ok 18 /printf/test-64bit 1126s # Start of test-64bit tests 1126s # Start of subprocess tests 1126s # End of subprocess tests 1126s # End of test-64bit tests 1126s # End of printf tests 1126s # Start of sprintf tests 1126s ok 19 /sprintf/test-positional-params 1126s ok 20 /sprintf/upper-bound 1126s # End of sprintf tests 1126s # Start of vasprintf tests 1126s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1126s ok 21 /vasprintf/invalid-format-placeholder 1126s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1126s ok 22 /vasprintf/invalid-wide-string 1126s # End of vasprintf tests 1126s TAP version 14 1126s # random seed: R02S90bf3d1bb3a54563363f6290dfc87abd 1126s 1..28 1126s # Start of socket tests 1127s ok 1 /socket/ipv4_sync 1127s # slow test /socket/ipv4_sync executed in 1.00 secs 1127s # Executing: glib/socket.test 1128s ok 2 /socket/ipv4_async 1128s # slow test /socket/ipv4_async executed in 1.00 secs 1128s ok 3 /socket/ipv6_sync 1128s ok 4 /socket/ipv6_async 1128s ok 5 /socket/ipv6_v4mapped 1129s ok 6 /socket/close_graceful 1129s # slow test /socket/close_graceful executed in 1.00 secs 1129s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1129s ok 8 /socket/fd_reuse 1129s ok 9 /socket/address 1129s ok 10 /socket/unix-from-fd 1129s ok 11 /socket/unix-connection 1129s ok 12 /socket/unix-connection-ancillary-data 1129s ok 13 /socket/source-postmortem 1129s ok 14 /socket/read_write 1129s ok 15 /socket/read_writev 1129s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1129s ok 16 /socket/receive_bytes 1129s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1129s ok 17 /socket/receive_bytes_from 1129s # Start of ipv4_sync tests 1129s ok 18 /socket/ipv4_sync/datagram 1129s # Start of datagram tests 1130s ok 19 /socket/ipv4_sync/datagram/timeouts 1130s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1130s # End of datagram tests 1130s # End of ipv4_sync tests 1130s # Start of ipv6_sync tests 1130s ok 20 /socket/ipv6_sync/datagram 1130s # Start of datagram tests 1131s ok 21 /socket/ipv6_sync/datagram/timeouts 1131s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1131s # End of datagram tests 1131s # End of ipv6_sync tests 1131s # Start of reuse tests 1131s ok 22 /socket/reuse/tcp 1131s ok 23 /socket/reuse/udp 1131s # End of reuse tests 1131s # Start of get_available tests 1132s ok 24 /socket/get_available/datagram 1132s ok 25 /socket/get_available/stream 1132s # End of get_available tests 1132s # Start of credentials tests 1132s # Supported on this OS: GCredentials:linux-ucred:pid=0 1132s ok 26 /socket/credentials/tcp_client 1132s # Supported on this OS: GCredentials:linux-ucred:pid=0 1132s ok 27 /socket/credentials/tcp_server 1132s # Supported on this OS: GCredentials:linux-ucred:pid=12392,uid=1000,gid=1000 1132s ok 28 /socket/credentials/unix_socketpair 1132s # End of credentials tests 1132s # End of socket tests 1132s ok - glib/socket.test 1132s # Running test: glib/642026-ec.test 1132s TAP version 14 1132s # random seed: R02Sa6a192ea1894f0bd2e79cf5dad9b7af3 1132s 1..1 1132s # Start of glib tests 1132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1132s ok - glib/642026-ec.test 1132s ok 1 /glib/642026 1132s # End of glib tests 1132s # Running test: glib/1bit-mutex.test 1132s TAP version 14 1132s # random seed: R02Sfd5982d7b642faeb8d83af7b7b43dba5 1132s 1..2 1132s # Start of glib tests 1132s # Start of 1bit-mutex tests 1132s # Executing: glib/1bit-mutex.test 1137s ok 1 /glib/1bit-mutex/int 1137s # slow test /glib/1bit-mutex/int executed in 5.45 secs 1137s # Executing: glib/1bit-mutex.test 1142s # Executing: glib/1bit-mutex.test 1142s ok 2 /glib/1bit-mutex/pointer 1142s # slow test /glib/1bit-mutex/pointer executed in 5.36 secs 1142s # End of 1bit-mutex tests 1142s # End of glib tests 1142s ok - glib/1bit-mutex.test 1142s # Running test: glib/unix-fd.test 1142s TAP version 14 1142s # random seed: R02S115ebaaf2d0471eff852a732d326870f 1142s 1..2 1142s # Start of unix-fd tests 1142s ok 1 /unix-fd/fd-list 1142s ok 2 /unix-fd/scm 1142s # End of unix-fd tests 1142s ok - glib/unix-fd.test 1142s # Running test: glib/option-argv0.test 1142s ok - glib/option-argv0.test 1142s # Running test: glib/thread-pool.test 1142s ok - glib/thread-pool.test 1142s # Running test: glib/portal-support-flatpak-gsettings-only.test 1142s TAP version 14 1142s # random seed: R02S38951147df7d81086e17433743dd6cc2 1142s 1..1 1142s # Start of option tests 1142s ok 1 /option/argv0 1142s # End of option tests 1142s TAP version 14 1142s # random seed: R02S614664941ae71938df6b0c3213a1d1eb 1142s 1..5 1142s # Start of thread_pool tests 1142s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1142s ok 1 /thread_pool/shared 1142s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1142s ok 2 /thread_pool/exclusive 1142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1142s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1142s ok 3 /thread_pool/create_shared_after_exclusive 1142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1142s ok 4 /thread_pool/create_full 1142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1142s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1142s ok 5 /thread_pool/create_exclusive_after_shared 1142s # End of thread_pool tests 1142s TAP version 14 1142s # random seed: R02S75afa80f02b4fd0526a24d23c3a29bc1 1142s 1..1 1142s # Start of portal-support tests 1142s # Start of flatpak tests 1142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/home 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/cache 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/system-config2 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/config 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/system-data2 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/data 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/state 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/runtime 1142s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_K71452/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1142s ok 1 /portal-support/flatpak/gsettings 1142s # End of flatpak tests 1142s # End of portal-support tests 1142s TAP version 14 1142s # random seed: R02S493026118f9aa76bbdc6da7bbc5048e4 1142s 1..2 1142s # Start of gtask tests 1142s # 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. 1142s ok 1 /gtask/name 1142s # Start of name tests 1142s # 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. 1142s ok 2 /gtask/name/macro-wrapper 1142s # End of name tests 1142s # End of gtask tests 1142s TAP version 14 1142s # random seed: R02S1e2cd8609e0ba08939a7016abc927b5c 1142s 1..17 1142s # Start of converter tests 1142s ok 1 /converter/basics 1142s # End of converter tests 1142s # Start of converter-input-stream tests 1142s ok 2 /converter-input-stream/expander 1142s ok 3 /converter-input-stream/compressor 1142s # Start of truncation tests 1142s ok - glib/portal-support-flatpak-gsettings-only.test 1142s # Running test: glib/cxx-11.test 1142s ok - glib/cxx-11.test 1142s # Running test: glib/converter-stream.test 1143s ok 4 /converter-input-stream/truncation/zlib 1143s ok 5 /converter-input-stream/truncation/gzip 1143s ok 6 /converter-input-stream/truncation/raw 1143s # End of truncation tests 1143s # Start of charset tests 1143s ok 7 /converter-input-stream/charset/utf8->latin1 1143s ok 8 /converter-input-stream/charset/latin1->utf8 1143s ok 9 /converter-input-stream/charset/fallbacks 1143s # End of charset tests 1143s # End of converter-input-stream tests 1143s # Start of converter-output-stream tests 1143s # Start of roundtrip tests 1143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1143s ok 10 /converter-output-stream/roundtrip/zlib-0 1143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1143s ok 11 /converter-output-stream/roundtrip/zlib-9 1143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1143s ok 12 /converter-output-stream/roundtrip/gzip-0 1143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1144s ok 13 /converter-output-stream/roundtrip/gzip-9 1144s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1144s ok 14 /converter-output-stream/roundtrip/raw-0 1144s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1144s ok 15 /converter-output-stream/roundtrip/raw-9 1144s # End of roundtrip tests 1144s # End of converter-output-stream tests 1144s # Start of converter-stream tests 1144s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1144s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x69d82bef5b0 and GSocketClientAsyncConnectData 0x69d82bec3e0 1144s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1144s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1144s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x69d827ff9f0 for GSocketClientAsyncConnectData 0x69d82bec3e0 1144s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1144s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1144s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1144s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1144s ok 16 /converter-stream/pollable 1144s ok 17 /converter-stream/leftover 1144s # End of converter-stream tests 1144s ok - glib/converter-stream.test 1144s # Running test: glib/tls-interaction.test 1144s TAP version 14 1144s # random seed: R02Sc00f2616526386848695aa7f2f83dbc9 1144s 1..42 1144s # Start of tls-interaction tests 1144s # Start of ask-password tests 1144s # Start of invoke-with-loop tests 1144s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1144s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1144s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1144s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1144s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1144s # End of invoke-with-loop tests 1144s # Start of invoke-without-loop tests 1144s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1144s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1144s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1144s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1144s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1144s # End of invoke-without-loop tests 1144s # Start of invoke-in-loop tests 1144s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1144s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1144s ok - glib/tls-interaction.test 1144s # Running test: glib/properties-refcount2.test 1144s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1144s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1144s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1144s # End of invoke-in-loop tests 1144s # Start of sync tests 1144s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1144s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1144s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1144s # End of sync tests 1144s # Start of async tests 1144s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1144s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1144s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1144s # End of async tests 1144s # End of ask-password tests 1144s # Start of request-certificate tests 1144s # Start of invoke-with-loop tests 1144s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1144s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1144s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1144s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1144s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1144s # End of invoke-with-loop tests 1144s # Start of invoke-without-loop tests 1144s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1144s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1144s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1144s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1144s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1144s # End of invoke-without-loop tests 1144s # Start of invoke-in-loop tests 1144s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1144s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1144s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1144s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1144s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1144s # End of invoke-in-loop tests 1144s # Start of sync tests 1144s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1144s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1144s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1144s # End of sync tests 1144s # Start of async tests 1144s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1144s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1144s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1144s # End of async tests 1144s # End of request-certificate tests 1144s # End of tls-interaction tests 1144s TAP version 14 1144s # random seed: R02S352642869d15bd1ed924964e61f230c9 1144s 1..1 1144s # Start of gobject tests 1144s # Start of refcount tests 1144s # init 0xa121814de30 1144s # 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1144s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1145s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1146s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # . 1147s # dispose 0xa121814de30! 1147s # 1147s ok 1 /gobject/refcount/properties-2 1147s # slow test /gobject/refcount/properties-2 executed in 3.17 secs 1147s # End of refcount tests 1147s # End of gobject tests 1147s ok - glib/properties-refcount2.test 1147s # Running test: glib/utils-c-89.test 1147s TAP version 14 1147s # random seed: R02S294173d4c4fa2e023c0793cc9612d88c 1147s 1..41 1147s # Start of utils tests 1147s ok 1 /utils/language-names 1147s ok 2 /utils/locale-variants 1147s ok 3 /utils/version 1147s ok 4 /utils/appname 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1147s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1147s ok 5 /utils/prgname-thread-safety 1147s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1147s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1147s ok 6 /utils/tmpdir 1147s ok 7 /utils/basic_bits 1147s ok 8 /utils/bits 1147s ok 9 /utils/swap 1147s ok 10 /utils/find-program 1147s ok 11 /utils/find-program-for-path 1147s ok 12 /utils/debug 1147s ok 13 /utils/codeset 1147s ok 14 /utils/codeset2 1147s ok 15 /utils/console-charset 1147s ok 16 /utils/gettext 1147s ok 17 /utils/username 1147s ok 18 /utils/realname 1147s ok 19 /utils/hostname 1147s ok 20 /utils/xdgdirs 1147s ok 21 /utils/specialdir 1147s # NAME: Ubuntu 1147s ok 22 /utils/os-info 1147s ok 23 /utils/clear-pointer 1147s ok 24 /utils/clear-pointer-cast 1147s ok 25 /utils/take-pointer 1147s ok 26 /utils/clear-source 1147s ok 27 /utils/misc-mem 1147s # /utils/aligned-mem summary: Aligned memory allocator 1147s # Alignment must not be zero 1147s # Alignment must be a power of two 1147s # Alignment must be a multiple of sizeof(void*) 1147s ok 28 /utils/aligned-mem 1147s # /utils/free-sized summary: Check that g_free_sized() works 1147s ok 29 /utils/free-sized 1147s ok 30 /utils/nullify 1147s ok 31 /utils/atexit 1147s ok 32 /utils/check-setuid 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1147s ok 33 /utils/int-limits 1147s ok 34 /utils/clear-list 1147s ok 35 /utils/clear-slist 1147s ok 36 /utils/steal-handle-id 1147s # Start of specialdir tests 1147s ok 37 /utils/specialdir/desktop 1147s # End of specialdir tests 1147s # Start of clear-pointer tests 1147s ok 38 /utils/clear-pointer/side-effects 1147s ok - glib/utils-c-89.test 1147s # Running test: glib/unicode-normalize.test 1147s # End of clear-pointer tests 1147s # Start of aligned-mem tests 1147s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1147s ok 39 /utils/aligned-mem/alignment 1147s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1147s ok 40 /utils/aligned-mem/zeroed 1147s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1147s ok 41 /utils/aligned-mem/free-sized 1147s # Start of subprocess tests 1147s # End of subprocess tests 1147s # End of aligned-mem tests 1147s # End of utils tests 1147s TAP version 14 1147s # random seed: R02S683d5f52819a97861057382acafc0888 1147s 1..3 1147s # Start of unicode tests 1147s # Processing Part0 # Specific cases 1147s # Processing Part1 # Character by character test 1147s # Processing Part2 # Canonical Order Test 1147s # Executing: glib/unicode-normalize.test 1147s # Processing Part3 # PRI #29 Test 1147s # Processing Part4 # Canonical closures (excluding Hangul) 1147s # Processing Part5 # Chained primary composites 1147s ok - glib/unicode-normalize.test 1147s ok 1 /unicode/normalize 1147s # Invalid UTF-8 vector 0 1147s # Invalid UTF-8 vector 1 1147s # Invalid UTF-8 vector 2 1147s # Invalid UTF-8 vector 3 1147s # Invalid UTF-8 vector 4 1147s # Invalid UTF-8 vector 5 1147s # Invalid UTF-8 vector 6 1147s # Invalid UTF-8 vector 7 1147s # Invalid UTF-8 vector 8 1147s # Invalid UTF-8 vector 9 1147s # Invalid UTF-8 vector 10 1147s # Invalid UTF-8 vector 11 1147s # Invalid UTF-8 vector 12 1147s ok 2 /unicode/normalize-invalid 1147s # Start of normalize tests 1147s ok 3 /unicode/normalize/bad-length 1147s # End of normalize tests 1147s # End of unicode tests 1147s # Running test: glib/io-channel-basic.test 1147s TAP version 14 1147s # random seed: R02S460ad5fd00a01cf2ab05f919f091930b 1147s 1..1 1147s # Start of gio tests 1147s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1147s # random seed: R02Sf69663570fd6c4e13458cdbc3cedd22c 1148s # GLib-DEBUG: io-channel-basic: child writing 8+3306 bytes to 6 1148s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1148s # GLib-DEBUG: io-channel-basic: ...from 5: 3306 bytes 1148s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1148s # GLib-DEBUG: io-channel-basic: child writing 8+1222 bytes to 6 1148s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1148s # GLib-DEBUG: io-channel-basic: ...from 5: 1222 bytes 1148s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1148s # GLib-DEBUG: io-channel-basic: child writing 8+3772 bytes to 6 1148s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1148s # GLib-DEBUG: io-channel-basic: ...from 5: 3772 bytes 1148s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1148s # GLib-DEBUG: io-channel-basic: child writing 8+3978 bytes to 6 1148s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1148s # GLib-DEBUG: io-channel-basic: ...from 5: 3978 bytes 1148s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1149s # GLib-DEBUG: io-channel-basic: child writing 8+725 bytes to 6 1149s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1149s # GLib-DEBUG: io-channel-basic: ...from 5: 725 bytes 1149s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1149s # GLib-DEBUG: io-channel-basic: child writing 8+1144 bytes to 6 1149s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1149s # GLib-DEBUG: io-channel-basic: ...from 5: 1144 bytes 1149s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1149s # GLib-DEBUG: io-channel-basic: child writing 8+3784 bytes to 6 1149s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1149s # GLib-DEBUG: io-channel-basic: ...from 5: 3784 bytes 1149s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1149s # GLib-DEBUG: io-channel-basic: child writing 8+613 bytes to 6 1149s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1149s # GLib-DEBUG: io-channel-basic: ...from 5: 613 bytes 1149s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1150s # GLib-DEBUG: io-channel-basic: child writing 8+1601 bytes to 6 1150s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1150s # GLib-DEBUG: io-channel-basic: ...from 5: 1601 bytes 1150s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1150s # GLib-DEBUG: io-channel-basic: child writing 8+3943 bytes to 6 1150s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1150s # GLib-DEBUG: io-channel-basic: ...from 5: 3943 bytes 1150s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1150s # GLib-DEBUG: io-channel-basic: child writing 8+3521 bytes to 6 1150s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1150s # GLib-DEBUG: io-channel-basic: ...from 5: 3521 bytes 1150s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1151s # GLib-DEBUG: io-channel-basic: child writing 8+3638 bytes to 6 1151s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1151s # GLib-DEBUG: io-channel-basic: ...from 5: 3638 bytes 1151s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1151s # GLib-DEBUG: io-channel-basic: child writing 8+2434 bytes to 6 1151s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1151s # GLib-DEBUG: io-channel-basic: ...from 5: 2434 bytes 1151s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1151s # GLib-DEBUG: io-channel-basic: child writing 8+4286 bytes to 6 1151s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1151s # GLib-DEBUG: io-channel-basic: ...from 5: 4286 bytes 1151s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1151s # GLib-DEBUG: io-channel-basic: child writing 8+2112 bytes to 6 1151s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1151s # GLib-DEBUG: io-channel-basic: ...from 5: 2112 bytes 1151s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1152s # GLib-DEBUG: io-channel-basic: child writing 8+3192 bytes to 6 1152s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1152s # GLib-DEBUG: io-channel-basic: ...from 5: 3192 bytes 1152s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1152s # GLib-DEBUG: io-channel-basic: child writing 8+2365 bytes to 6 1152s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1152s # GLib-DEBUG: io-channel-basic: ...from 5: 2365 bytes 1152s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1152s # GLib-DEBUG: io-channel-basic: child writing 8+4924 bytes to 6 1152s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1152s # GLib-DEBUG: io-channel-basic: ...from 5: 4924 bytes 1152s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1152s # GLib-DEBUG: io-channel-basic: child writing 8+271 bytes to 6 1152s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1152s # GLib-DEBUG: io-channel-basic: ...from 5: 271 bytes 1152s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1152s # Executing: glib/io-channel-basic.test 1153s # GLib-DEBUG: io-channel-basic: child writing 8+3532 bytes to 6 1153s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1153s # GLib-DEBUG: io-channel-basic: ...from 5: 3532 bytes 1153s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1153s # GLib-DEBUG: io-channel-basic: child writing 8+3949 bytes to 6 1153s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1153s # GLib-DEBUG: io-channel-basic: ...from 5: 3949 bytes 1153s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1153s # GLib-DEBUG: io-channel-basic: child writing 8+3616 bytes to 6 1153s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1153s # GLib-DEBUG: io-channel-basic: ...from 5: 3616 bytes 1153s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1153s # GLib-DEBUG: io-channel-basic: child writing 8+406 bytes to 6 1153s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1153s # GLib-DEBUG: io-channel-basic: ...from 5: 406 bytes 1153s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+442 bytes to 6 1154s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1154s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1154s # GLib-DEBUG: io-channel-basic: ...from 5: 442 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1154s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1154s # random seed: R02Sa975cdf6924edfc7aab2c24e217dbec9 1154s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1154s # random seed: R02S2cb995f684a3297b7479831e09674b3a 1154s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1154s # random seed: R02S2a19d198f1b7a644767b32b7c566cd0d 1154s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1154s # random seed: R02S9753194024ef2db3cdeb7e5d4a8ad232 1154s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1154s # random seed: R02Sc2586743af88376995d24c99947350a8 1154s # GLib-DEBUG: io-channel-basic: child writing 8+1239 bytes to 9 1154s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 8: 1239 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+449 bytes to 17 1154s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 16: 449 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2360 bytes to 15 1154s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 14: 2360 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+591 bytes to 13 1154s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 12: 591 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+3230 bytes to 11 1154s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 10: 3230 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+4959 bytes to 17 1154s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 16: 4959 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2324 bytes to 9 1154s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 8: 2324 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2377 bytes to 11 1154s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 10: 2377 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+3977 bytes to 13 1154s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 12: 3977 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+330 bytes to 15 1154s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 14: 330 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2919 bytes to 9 1154s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 8: 2919 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+3229 bytes to 11 1154s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 10: 3229 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2612 bytes to 13 1154s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 12: 2612 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+2166 bytes to 17 1154s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 16: 2166 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1154s # GLib-DEBUG: io-channel-basic: child writing 8+607 bytes to 15 1154s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1154s # GLib-DEBUG: io-channel-basic: ...from 14: 607 bytes 1154s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+2609 bytes to 13 1155s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 12: 2609 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+2158 bytes to 17 1155s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 16: 2158 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+861 bytes to 9 1155s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 8: 861 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+4741 bytes to 11 1155s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 10: 4741 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+1878 bytes to 15 1155s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 14: 1878 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+2884 bytes to 13 1155s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 12: 2884 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+4606 bytes to 17 1155s # GLib-DEBUG: io-channel-basic: child writing 8+645 bytes to 9 1155s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 8: 645 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1155s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 16: 4606 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+3287 bytes to 11 1155s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 10: 3287 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+939 bytes to 15 1155s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 14: 939 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+2247 bytes to 11 1155s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 10: 2247 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+3411 bytes to 13 1155s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 12: 3411 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+2126 bytes to 17 1155s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 16: 2126 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+211 bytes to 9 1155s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 8: 211 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1155s # GLib-DEBUG: io-channel-basic: child writing 8+3794 bytes to 15 1155s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1155s # GLib-DEBUG: io-channel-basic: ...from 14: 3794 bytes 1155s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+4221 bytes to 13 1156s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 12: 4221 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+3455 bytes to 17 1156s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 16: 3455 bytes 1156s # GLib-DEBUG: io-channel-basic: child writing 8+4628 bytes to 11 1156s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1156s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 10: 4628 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+278 bytes to 9 1156s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 8: 278 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+1608 bytes to 15 1156s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 14: 1608 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+775 bytes to 13 1156s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 12: 775 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+845 bytes to 17 1156s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 16: 845 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+1640 bytes to 11 1156s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 10: 1640 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+2784 bytes to 9 1156s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 8: 2784 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+3241 bytes to 15 1156s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 14: 3241 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+2609 bytes to 11 1156s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 10: 2609 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+4452 bytes to 13 1156s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 12: 4452 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+2264 bytes to 17 1156s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 16: 2264 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+2749 bytes to 9 1156s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 8: 2749 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+4257 bytes to 15 1156s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 14: 4257 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+3374 bytes to 11 1156s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 10: 3374 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+2831 bytes to 13 1156s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 12: 2831 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+3591 bytes to 17 1156s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 16: 3591 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+907 bytes to 9 1156s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 8: 907 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1156s # GLib-DEBUG: io-channel-basic: child writing 8+3731 bytes to 15 1156s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1156s # GLib-DEBUG: io-channel-basic: ...from 14: 3731 bytes 1156s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+79 bytes to 11 1157s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 10: 79 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+663 bytes to 17 1157s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 16: 663 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+2628 bytes to 9 1157s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 8: 2628 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+1615 bytes to 13 1157s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 12: 1615 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+1776 bytes to 15 1157s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 14: 1776 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+3094 bytes to 11 1157s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 10: 3094 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4887 bytes to 17 1157s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 16: 4887 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+2337 bytes to 9 1157s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 8: 2337 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4902 bytes to 13 1157s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 12: 4902 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4676 bytes to 15 1157s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 14: 4676 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+628 bytes to 11 1157s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 10: 628 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+2086 bytes to 17 1157s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 16: 2086 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4876 bytes to 13 1157s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 12: 4876 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+2532 bytes to 9 1157s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 8: 2532 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+440 bytes to 15 1157s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 14: 440 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+3587 bytes to 11 1157s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 10: 3587 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+174 bytes to 17 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4441 bytes to 9 1157s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 8: 4441 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1157s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 16: 174 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1157s # GLib-DEBUG: io-channel-basic: child writing 8+2402 bytes to 13 1157s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 12: 2402 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1157s # Executing: glib/io-channel-basic.test 1157s # GLib-DEBUG: io-channel-basic: child writing 8+4170 bytes to 15 1157s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1157s # GLib-DEBUG: io-channel-basic: ...from 14: 4170 bytes 1157s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+2629 bytes to 11 1158s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 10: 2629 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+659 bytes to 17 1158s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 16: 659 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+3134 bytes to 9 1158s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 8: 3134 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+682 bytes to 13 1158s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 12: 682 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1871 bytes to 15 1158s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 14: 1871 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+592 bytes to 11 1158s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 10: 592 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1336 bytes to 17 1158s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 16: 1336 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+671 bytes to 13 1158s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 12: 671 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1725 bytes to 9 1158s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 8: 1725 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+3173 bytes to 15 1158s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 14: 3173 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1611 bytes to 11 1158s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 10: 1611 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1654 bytes to 17 1158s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 16: 1654 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+944 bytes to 9 1158s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 8: 944 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+2370 bytes to 13 1158s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 12: 2370 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+4281 bytes to 15 1158s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 14: 4281 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+1934 bytes to 11 1158s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 10: 1934 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+4793 bytes to 13 1158s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 12: 4793 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+166 bytes to 17 1158s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 16: 166 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+2356 bytes to 9 1158s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 8: 2356 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1158s # GLib-DEBUG: io-channel-basic: child writing 8+3252 bytes to 15 1158s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1158s # GLib-DEBUG: io-channel-basic: ...from 14: 3252 bytes 1158s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+4718 bytes to 11 1159s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 10: 4718 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+576 bytes to 17 1159s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 16: 576 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+4840 bytes to 13 1159s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 12: 4840 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+4514 bytes to 9 1159s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 8: 4514 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+1911 bytes to 15 1159s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 14: 1911 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+393 bytes to 11 1159s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1159s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1159s # GLib-DEBUG: io-channel-basic: ...from 10: 393 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+3114 bytes to 17 1159s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 16: 3114 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+798 bytes to 9 1159s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 8: 798 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+2709 bytes to 13 1159s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 12: 2709 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+4442 bytes to 15 1159s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 14: 4442 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+1248 bytes to 17 1159s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1159s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1159s # GLib-DEBUG: io-channel-basic: ...from 16: 1248 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+1342 bytes to 9 1159s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1159s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1159s # GLib-DEBUG: io-channel-basic: ...from 8: 1342 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+756 bytes to 13 1159s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 12: 756 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+517 bytes to 15 1159s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 14: 517 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+2913 bytes to 13 1159s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1159s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1159s # GLib-DEBUG: io-channel-basic: ...from 12: 2913 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1159s # GLib-DEBUG: io-channel-basic: child writing 8+4526 bytes to 15 1159s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1159s # GLib-DEBUG: io-channel-basic: ...from 14: 4526 bytes 1159s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1160s ok - glib/io-channel-basic.test 1160s # GLib-DEBUG: io-channel-basic: child writing 8+1543 bytes to 15 1160s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1160s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1160s # GLib-DEBUG: io-channel-basic: ...from 14: 1543 bytes 1160s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1160s ok 1 /gio/io-basics 1160s # slow test /gio/io-basics executed in 12.35 secs 1160s # End of gio tests 1160s # Running test: glib/asyncqueue.test 1160s TAP version 14 1160s # random seed: R02S02ab86b246049c356c78267115dafd39 1160s 1..7 1160s # Start of asyncqueue tests 1160s ok 1 /asyncqueue/basics 1160s ok 2 /asyncqueue/sort 1160s ok 3 /asyncqueue/destroy 1160s ok 4 /asyncqueue/threads 1160s ok 5 /asyncqueue/timed 1160s ok 6 /asyncqueue/remove 1160s ok 7 /asyncqueue/push_front 1160s # End of asyncqueue tests 1160s ok - glib/asyncqueue.test 1160s # Running test: glib/sleepy-stream.test 1160s TAP version 14 1160s # random seed: R02S68df7affaee5f991001092269375b6f0 1160s 1..2 1160s # Start of filter-stream tests 1160s ok 1 /filter-stream/input 1160s ok - glib/sleepy-stream.test 1160s ok 2 /filter-stream/async 1160s # End of filter-stream tests 1160s # Running test: glib/function-info.test 1160s TAP version 14 1160s # random seed: R02S166806821f10c7e2d3d3c953957a3ae1 1160s 1..1 1160s # Start of function-info tests 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_SNFA62/function-info/invoker/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_SNFA62/function-info/invoker/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_SNFA62/function-info/invoker/.dirs/runtime 1160s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1160s # /function-info/invoker summary: Test preparing a function invoker 1160s ok 1 /function-info/invoker 1160s # End of function-info tests 1160s ok - glib/function-info.test 1160s # Running test: glib/atomic-c-89.test 1160s TAP version 14 1160s # random seed: R02Sdccae7caea00a0b3db41c3bcfade4dd5 1160s 1..2 1160s # Start of atomic tests 1160s ok 1 /atomic/types 1160s ok 2 /atomic/threaded 1160s # End of atomic tests 1160s ok - glib/atomic-c-89.test 1160s # Running test: glib/tls-database.test 1160s ok - glib/tls-database.test 1160s TAP version 14 1160s # random seed: R02S45daa723abf3632ff449acb0379c1a78 1160s 1..1 1160s # Start of tls-backend tests 1160s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 1160s ok 1 /tls-backend/set-default-database 1160s # End of tls-backend tests 1160s # Running test: glib/gdbus-export.test 1160s TAP version 14 1160s # random seed: R02Sf4bc8ee507a53176f744f83ee7cb7b29 1160s 1..7 1160s # Start of gdbus tests 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/object-registration/.dirs/runtime 1160s ok 1 /gdbus/object-registration 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures/.dirs/runtime 1160s ok 2 /gdbus/object-registration-with-closures 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/object-registration-with-closures2/.dirs/runtime 1160s ok 3 /gdbus/object-registration-with-closures2 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/registered-interfaces/.dirs/runtime 1160s ok 4 /gdbus/registered-interfaces 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/async-properties/.dirs/runtime 1160s ok 5 /gdbus/async-properties 1160s # Start of threaded-unregistration tests 1160s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/home 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/cache 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/system-config2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/config 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/system-data2 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/data 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/state 1160s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/object/.dirs/runtime 1160s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1160s # /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 1162s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (16 iterations with unregistration first, 984 with call first); skipping test 1162s # slow test /gdbus/threaded-unregistration/object executed in 1.51 secs 1162s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/home 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/cache 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/config 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/data 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/state 1162s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BRL852/gdbus/threaded-unregistration/subtree/.dirs/runtime 1162s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1162s # /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 1162s # Executing: glib/gdbus-export.test 1164s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (86 iterations with unregistration first, 914 with call first); skipping test 1164s # slow test /gdbus/threaded-unregistration/subtree executed in 1.90 secs 1164s # End of threaded-unregistration tests 1164s # End of gdbus tests 1164s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1164s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1164s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1164s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1164s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1164s cleaning up pid 13734 1164s ok - glib/gdbus-export.test 1164s # Running test: glib/memory-input-stream.test 1164s TAP version 14 1164s # random seed: R02S4ea1c2829770fe5922e7643c1e1f4585 1164s 1..6 1164s # Start of memory-input-stream tests 1164s ok 1 /memory-input-stream/read-chunks 1164s ok 2 /memory-input-stream/async 1164s ok - glib/memory-input-stream.test 1164s # Running test: glib/signals-refcount1.test 1164s ok 3 /memory-input-stream/seek 1164s ok 4 /memory-input-stream/truncate 1164s ok 5 /memory-input-stream/read-bytes 1164s ok 6 /memory-input-stream/from-bytes 1164s # End of memory-input-stream tests 1164s TAP version 14 1164s # random seed: R02S8dc306dfc7ee0dd5573b539a03f8427e 1164s 1..1 1164s # Start of gobject tests 1164s # Start of refcount tests 1164s # init 0x120f9b37ddd0 1164s # 1164s # init 0x120f9b37a310 1164s # 1167s # Executing: glib/signals-refcount1.test 1169s # dispose 0x120f9b37ddd0! 1169s # 1169s # dispose 0x120f9b37a310! 1169s # 1169s ok 1 /gobject/refcount/signals 1169s # slow test /gobject/refcount/signals executed in 5.00 secs 1169s # End of refcount tests 1169s # End of gobject tests 1169s ok - glib/signals-refcount1.test 1169s # Running test: glib/types.test 1169s TAP version 14 1169s # random seed: R02Sdf486001424ad22c66f66bfaaebc3820 1169s 1..1 1169s # Start of types tests 1169s ok 1 /types/basic_types 1169s # End of types tests 1169s ok - glib/types.test 1169s # Running test: glib/glistmodel.test 1169s TAP version 14 1169s # random seed: R02S93e0abcd591d925219df546478d4426d 1169s 1..18 1169s # Start of glistmodel tests 1169s # Start of store tests 1169s ok 1 /glistmodel/store/properties 1169s ok 2 /glistmodel/store/non-gobjects 1169s ok - glib/glistmodel.test 1169s # Running test: glib/unicode.test 1169s ok 3 /glistmodel/store/boundaries 1169s ok 4 /glistmodel/store/refcounts 1169s ok 5 /glistmodel/store/sorted 1169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1169s ok 6 /glistmodel/store/splice-replace-middle 1169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1169s ok 7 /glistmodel/store/splice-replace-all 1169s ok 8 /glistmodel/store/splice-noop 1169s ok 9 /glistmodel/store/splice-remove-multiple 1169s ok 10 /glistmodel/store/splice-add-multiple 1169s ok 11 /glistmodel/store/splice-wrong-type 1169s ok 12 /glistmodel/store/item-type 1169s ok 13 /glistmodel/store/remove-all 1169s ok 14 /glistmodel/store/sort 1169s ok 15 /glistmodel/store/get-item-cache 1169s ok 16 /glistmodel/store/items-changed 1169s ok 17 /glistmodel/store/past-end 1169s ok 18 /glistmodel/store/find 1169s # End of store tests 1169s # End of glistmodel tests 1169s TAP version 14 1169s # random seed: R02S42829aba5d97ff24771b6e6e7df5a580 1169s 1..39 1169s # Start of unicode tests 1169s ok 1 /unicode/alnum 1169s ok 2 /unicode/alpha 1169s ok 3 /unicode/break-type 1169s ok 4 /unicode/canonical-decomposition 1169s ok 5 /unicode/casefold 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s # Cannot set locale to lt_LT, skipping 1169s ok 6 /unicode/casemap_and_casefold 1169s ok 7 /unicode/cases 1169s ok 8 /unicode/character-type 1169s ok 9 /unicode/cntrl 1169s ok 10 /unicode/combining-class 1169s # Composing U+000041 and U+000042; expecting U+000000 1169s # Composing U+000041 and U+000000; expecting U+000000 1169s # Composing U+000066 and U+000069; expecting U+000000 1169s # Composing U+000308 and U+000301; expecting U+000000 1169s # Composing U+000f71 and U+000f72; expecting U+000000 1169s # Composing U+00212b and U+000000; expecting U+000000 1169s # Composing U+0000c5 and U+000000; expecting U+000000 1169s # Composing U+002126 and U+000000; expecting U+000000 1169s # Composing U+0003a9 and U+000000; expecting U+000000 1169s # Composing U+000041 and U+00030a; expecting U+0000c5 1169s # Composing U+00006f and U+000302; expecting U+0000f4 1169s # Composing U+001e63 and U+000307; expecting U+001e69 1169s # Composing U+000073 and U+000323; expecting U+001e63 1169s # Composing U+000064 and U+000307; expecting U+001e0b 1169s # Composing U+000064 and U+000323; expecting U+001e0d 1169s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1169s # Composing U+001111 and U+001171; expecting U+00d4cc 1169s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1169s # Composing U+00110e and U+001173; expecting U+00ce20 1169s # Composing U+001100 and U+001160; expecting U+000000 1169s # Composing U+001100 and U+001177; expecting U+000000 1169s # Composing U+00abff and U+0011b6; expecting U+000000 1169s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1169s # Composing U+00ac01 and U+0011b6; expecting U+000000 1169s # Composing U+00d4cc and U+0011a6; expecting U+000000 1169s # Composing U+00d4cc and U+0011c4; expecting U+000000 1169s # Composing U+01611e and U+01611e; expecting U+016121 1169s # Composing U+01611e and U+01611f; expecting U+016123 1169s # Composing U+0000f6 and U+000304; expecting U+00022b 1169s # Composing U+000b47 and U+000b57; expecting U+000b4c 1169s # Composing U+0000a0 and U+000b57; expecting U+000000 1169s # Composing U+016e00 and U+00030a; expecting U+000000 1169s # Composing U+00212b and U+016e00; expecting U+000000 1169s # Composing U+001e63 and U+000306; expecting U+000000 1169s # Composing U+001e63 and U+000304; expecting U+000000 1169s # Composing U+001e63 and U+000b57; expecting U+000000 1169s # Composing U+001e63 and U+000000; expecting U+000000 1169s # Composing U+001e63 and U+0113c2; expecting U+000000 1169s # Composing U+001f01 and U+0113c2; expecting U+000000 1169s # Composing U+00006e and U+000302; expecting U+000000 1169s # Composing U+001e63 and U+01611f; expecting U+000000 1169s # Composing U+01138e and U+0113b8; expecting U+000000 1169s # Composing U+01611e and U+000000; expecting U+000000 1169s # Composing U+000000 and U+01611f; expecting U+000000 1169s # Composing U+011390 and U+0113c2; expecting U+000000 1169s ok 11 /unicode/compose 1169s ok 12 /unicode/decompose 1169s ok 13 /unicode/decompose-tail 1169s ok 14 /unicode/defined 1169s ok 15 /unicode/digit 1169s ok 16 /unicode/digit-value 1169s # Fully decomposing U+000041; expecting 1 codepoints 1169s # Fully decomposing U+00fb01; expecting 1 codepoints 1169s # Fully decomposing U+00212b; expecting 2 codepoints 1169s # Fully decomposing U+002126; expecting 1 codepoints 1169s # Fully decomposing U+000344; expecting 2 codepoints 1169s # Fully decomposing U+000f73; expecting 2 codepoints 1169s # Fully decomposing U+0000c5; expecting 2 codepoints 1169s # Fully decomposing U+0000f4; expecting 2 codepoints 1169s # Fully decomposing U+001e69; expecting 3 codepoints 1169s # Fully decomposing U+001e63; expecting 2 codepoints 1169s # Fully decomposing U+001e0b; expecting 2 codepoints 1169s # Fully decomposing U+001e0d; expecting 2 codepoints 1169s # Fully decomposing U+00d4db; expecting 3 codepoints 1169s # Fully decomposing U+00d4cc; expecting 2 codepoints 1169s # Fully decomposing U+00ce31; expecting 3 codepoints 1169s # Fully decomposing U+00ce20; expecting 2 codepoints 1169s ok 17 /unicode/fully-decompose-canonical 1169s ok 18 /unicode/fully-decompose-len 1169s ok 19 /unicode/normalization 1169s ok 20 /unicode/graph 1169s # Testing script Zyyy (code 1517910393) 1169s # Testing script Zinh (code 1516858984) 1169s # Testing script Zmth (code 1517122664) 1169s # Testing script Arab (code 1098015074) 1169s # Testing script Armn (code 1098018158) 1169s # Testing script Beng (code 1113943655) 1169s # Testing script Bopo (code 1114599535) 1169s # Testing script Cher (code 1130915186) 1169s # Testing script Copt (code 1131376756) 1169s # Testing script Cyrl (code 1132032620) 1169s # Testing script Dsrt (code 1148416628) 1169s # Testing script Deva (code 1147500129) 1169s # Testing script Ethi (code 1165256809) 1169s # Testing script Geor (code 1197830002) 1169s # Testing script Goth (code 1198486632) 1169s # Testing script Grek (code 1198679403) 1169s # Testing script Gujr (code 1198877298) 1169s # Testing script Guru (code 1198879349) 1169s # Testing script Hani (code 1214344809) 1169s # Testing script Hang (code 1214344807) 1169s # Testing script Hebr (code 1214603890) 1169s # Testing script Hira (code 1214870113) 1169s # Testing script Knda (code 1265525857) 1169s # Testing script Kana (code 1264676449) 1169s # Testing script Khmr (code 1265134962) 1169s # Testing script Laoo (code 1281453935) 1169s # Testing script Latn (code 1281455214) 1169s # Testing script Mlym (code 1298954605) 1169s # Testing script Mong (code 1299148391) 1169s # Testing script Mymr (code 1299803506) 1169s # Testing script Ogam (code 1332175213) 1169s # Testing script Ital (code 1232363884) 1169s # Testing script Orya (code 1332902241) 1169s # Testing script Runr (code 1383427698) 1169s # Testing script Sinh (code 1399418472) 1169s # Testing script Syrc (code 1400468067) 1169s # Testing script Taml (code 1415671148) 1169s # Testing script Telu (code 1415933045) 1169s # Testing script Thaa (code 1416126817) 1169s # Testing script Thai (code 1416126825) 1169s # Testing script Tibt (code 1416192628) 1169s # Testing script Cans (code 1130458739) 1169s # Testing script Yiii (code 1500080489) 1169s # Testing script Tglg (code 1416064103) 1169s # Testing script Hano (code 1214344815) 1169s # Testing script Buhd (code 1114990692) 1169s # Testing script Tagb (code 1415669602) 1169s # Testing script Brai (code 1114792297) 1169s # Testing script Cprt (code 1131442804) 1169s # Testing script Limb (code 1281977698) 1169s # Testing script Osma (code 1332964705) 1169s # Testing script Shaw (code 1399349623) 1169s # Testing script Linb (code 1281977954) 1169s # Testing script Tale (code 1415670885) 1169s # Testing script Ugar (code 1432838514) 1169s # Testing script Talu (code 1415670901) 1169s # Testing script Bugi (code 1114990441) 1169s # Testing script Glag (code 1198285159) 1169s # Testing script Tfng (code 1415999079) 1169s # Testing script Sylo (code 1400466543) 1169s # Testing script Xpeo (code 1483761007) 1169s # Testing script Khar (code 1265131890) 1169s # Testing script Zzzz (code 1517976186) 1169s # Testing script Bali (code 1113681001) 1169s # Testing script Xsux (code 1483961720) 1169s # Testing script Phnx (code 1349021304) 1169s # Testing script Phag (code 1349017959) 1169s # Testing script Nkoo (code 1315663727) 1169s # Testing script Kali (code 1264675945) 1169s # Testing script Lepc (code 1281716323) 1169s # Testing script Rjng (code 1382706791) 1169s # Testing script Sund (code 1400204900) 1169s # Testing script Saur (code 1398895986) 1169s # Testing script Cham (code 1130914157) 1169s # Testing script Olck (code 1332503403) 1169s # Testing script Vaii (code 1449224553) 1169s # Testing script Cari (code 1130459753) 1169s # Testing script Lyci (code 1283023721) 1169s # Testing script Lydi (code 1283023977) 1169s # Testing script Avst (code 1098281844) 1169s # Testing script Bamu (code 1113681269) 1169s # Testing script Egyp (code 1164409200) 1169s # Testing script Armi (code 1098018153) 1169s # Testing script Phli (code 1349020777) 1169s # Testing script Prti (code 1349678185) 1169s # Testing script Java (code 1247901281) 1169s # Testing script Kthi (code 1265920105) 1169s # Testing script Lisu (code 1281979253) 1169s # Testing script Mtei (code 1299473769) 1169s # Testing script Sarb (code 1398895202) 1169s # Testing script Orkh (code 1332898664) 1169s # Testing script Samr (code 1398893938) 1169s # Testing script Lana (code 1281453665) 1169s # Testing script Tavt (code 1415673460) 1169s # Testing script Batk (code 1113683051) 1169s # Testing script Brah (code 1114792296) 1169s # Testing script Mand (code 1298230884) 1169s # Testing script Cakm (code 1130457965) 1169s # Testing script Merc (code 1298494051) 1169s # Testing script Mero (code 1298494063) 1169s # Testing script Plrd (code 1349284452) 1169s # Testing script Shrd (code 1399353956) 1169s # Testing script Sora (code 1399812705) 1169s # Testing script Takr (code 1415670642) 1169s # Testing script Bass (code 1113682803) 1169s # Testing script Aghb (code 1097295970) 1169s # Testing script Dupl (code 1148547180) 1169s # Testing script Elba (code 1164730977) 1169s # Testing script Gran (code 1198678382) 1169s # Testing script Khoj (code 1265135466) 1169s # Testing script Sind (code 1399418468) 1169s # Testing script Lina (code 1281977953) 1169s # Testing script Mahj (code 1298229354) 1169s # Testing script Mani (code 1298230889) 1169s # Testing script Mend (code 1298493028) 1169s # Testing script Modi (code 1299145833) 1169s # Testing script Mroo (code 1299345263) 1169s # Testing script Nbat (code 1315070324) 1169s # Testing script Narb (code 1315009122) 1169s # Testing script Perm (code 1348825709) 1169s # Testing script Hmng (code 1215131239) 1169s # Testing script Palm (code 1348562029) 1169s # Testing script Pauc (code 1348564323) 1169s # Testing script Phlp (code 1349020784) 1169s # Testing script Sidd (code 1399415908) 1169s # Testing script Tirh (code 1416196712) 1169s # Testing script Wara (code 1466004065) 1169s # Testing script Ahom (code 1097363309) 1169s # Testing script Hluw (code 1215067511) 1169s # Testing script Hatr (code 1214346354) 1169s # Testing script Mult (code 1299541108) 1169s # Testing script Hung (code 1215655527) 1169s # Testing script Sgnw (code 1399287415) 1169s # Testing script Adlm (code 1097100397) 1169s # Testing script Bhks (code 1114139507) 1169s # Testing script Marc (code 1298231907) 1169s # Testing script Newa (code 1315272545) 1169s # Testing script Osge (code 1332963173) 1169s # Testing script Tang (code 1415671399) 1169s # Testing script Gonm (code 1198485101) 1169s # Testing script Nshu (code 1316186229) 1169s # Testing script Soyo (code 1399814511) 1169s # Testing script Zanb (code 1516334690) 1169s # Testing script Dogr (code 1148151666) 1169s # Testing script Gong (code 1198485095) 1169s # Testing script Rohg (code 1383032935) 1169s # Testing script Maka (code 1298230113) 1169s # Testing script Medf (code 1298490470) 1169s # Testing script Sogo (code 1399809903) 1169s # Testing script Sogd (code 1399809892) 1169s # Testing script Elym (code 1164736877) 1169s # Testing script Nand (code 1315008100) 1169s # Testing script Hmnp (code 1215131248) 1169s # Testing script Wcho (code 1466132591) 1169s # Testing script Chrs (code 1130918515) 1169s # Testing script Diak (code 1147756907) 1169s # Testing script Kits (code 1265202291) 1169s # Testing script Yezi (code 1499822697) 1169s # Testing script Cpmn (code 1131441518) 1169s # Testing script Ougr (code 1333094258) 1169s # Testing script Tnsa (code 1416524641) 1169s # Testing script Toto (code 1416590447) 1169s # Testing script Vith (code 1449751656) 1169s # Testing script Kawi (code 1264678761) 1169s # Testing script Nagm (code 1315006317) 1169s # Testing script Todr (code 1416586354) 1169s # Testing script Gara (code 1197568609) 1169s # Testing script Tutg (code 1416983655) 1169s # Testing script Sunu (code 1400204917) 1169s # Testing script Gukh (code 1198877544) 1169s # Testing script Krai (code 1265787241) 1169s # Testing script Onao (code 1332633967) 1169s ok 21 /unicode/iso15924 1169s ok 22 /unicode/lower 1169s ok 23 /unicode/mark 1169s ok 24 /unicode/mirror 1169s ok 25 /unicode/print 1169s ok 26 /unicode/punctuation 1169s ok 27 /unicode/script 1169s ok 28 /unicode/space 1169s ok 29 /unicode/strdown 1169s ok 30 /unicode/strup 1169s ok 31 /unicode/turkish-strupdown 1169s ok 32 /unicode/title 1169s ok 33 /unicode/upper 1169s ok 34 /unicode/validate 1169s ok 35 /unicode/wide 1169s ok 36 /unicode/xdigit 1169s ok 37 /unicode/xdigit-value 1169s ok 38 /unicode/zero-width 1169s ok 39 /unicode/normalize 1169s # End of unicode tests 1169s ok - glib/unicode.test 1169s # Running test: glib/environment.test 1169s ok - glib/environment.test 1169s # Running test: glib/socket-listener.test 1169s ok - glib/socket-listener.test 1169s # Running test: glib/atomic.test 1169s TAP version 14 1169s # random seed: R02S3affc061f92c1cb1f4d569af5f80e2bf 1169s 1..6 1169s # Start of environ tests 1169s # /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. 1169s ok 1 /environ/listenv 1169s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1169s ok 2 /environ/getenv 1169s ok 3 /environ/setenv 1169s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1169s ok 4 /environ/array 1169s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1169s ok 5 /environ/null 1169s # /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. 1169s ok 6 /environ/case 1169s # End of environ tests 1169s TAP version 14 1169s # random seed: R02S6ccbaa79ef332ba3796fc22e3fbba18c 1169s 1..1 1169s # Start of socket-listener tests 1169s ok 1 /socket-listener/event-signal 1169s # End of socket-listener tests 1169s TAP version 14 1169s # random seed: R02S5a3b65748a08af077bae442fcce84f9d 1169s 1..2 1169s # Start of atomic tests 1169s ok 1 /atomic/types 1169s ok 2 /atomic/threaded 1169s # End of atomic tests 1169s ok - glib/atomic.test 1169s # Running test: glib/notify-init2.test 1169s TAP version 14 1169s # random seed: R02S4a95ae52455a9b9d11d0301b02123c34 1169s 1..1 1169s # Start of properties tests 1169s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1169s ok 1 /properties/notify-in-init2 1169s # End of properties tests 1169s ok - glib/notify-init2.test 1169s # Running test: glib/unix.test 1169s TAP version 14 1169s # random seed: R02S4fcfae2898d73997b453b4f68d093748 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 1170s ok 8 /glib-unix/sighup 1170s # slow test /glib-unix/sighup executed in 0.50 secs 1170s ok 9 /glib-unix/sigterm 1170s # slow test /glib-unix/sigterm executed in 0.50 secs 1171s ok 10 /glib-unix/sighup_again 1171s # slow test /glib-unix/sighup_again executed in 0.50 secs 1171s ok 11 /glib-unix/sighup_add_remove 1171s ok 12 /glib-unix/sighup_nested 1172s # Executing: glib/unix.test 1173s ok 13 /glib-unix/callback_after_signal 1173s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1173s ok 14 /glib-unix/child-wait 1173s # Start of closefrom tests 1173s # Start of subprocess tests 1173s # End of subprocess tests 1173s # End of closefrom tests 1173s # Start of pipe tests 1173s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1173s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1173s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1173s ok 15 /glib-unix/pipe/fd-cloexec 1173s # End of pipe tests 1173s # Start of sighup tests 1174s ok 16 /glib-unix/sighup/alternate-stack 1174s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1174s # End of sighup tests 1174s # 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 1176s ok 18 /glib-unix/sighup_again/alternate-stack 1176s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1176s # End of sighup_again tests 1176s # Start of get-passwd-entry tests 1176s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1176s ok 19 /glib-unix/get-passwd-entry/root 1176s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1176s ok 20 /glib-unix/get-passwd-entry/nonexistent 1176s # End of get-passwd-entry tests 1176s # End of glib-unix tests 1176s ok - glib/unix.test 1176s # Running test: glib/macros-c-17.test 1176s TAP version 14 1176s # random seed: R02S9066ca8731f375d61ed75eb09a370d49 1176s 1..4 1176s # Start of C tests 1176s ok 1 /C/standard-17 1176s # End of C tests 1176s ok - glib/macros-c-17.test 1176s # Running test: glib/markup-subparser.test 1176s ok - glib/markup-subparser.test 1176s # Running test: glib/portal-support-snap-classic.test 1176s # Start of alignof tests 1176s ok 2 /alignof/fallback 1176s # End of alignof tests 1176s # Start of assert tests 1176s ok 3 /assert/static 1176s # End of assert tests 1176s # Start of struct tests 1176s ok 4 /struct/sizeof_member 1176s # End of struct tests 1176s TAP version 14 1176s # random seed: R02Sb2be57157136b5599d06f03947486f1d 1176s 1..14 1176s # Start of glib tests 1176s # Start of markup tests 1176s # Start of subparser tests 1176s # Start of success tests 1176s ok 1 /glib/markup/subparser/success/0 1176s ok 2 /glib/markup/subparser/success/1 1176s ok 3 /glib/markup/subparser/success/2 1176s ok 4 /glib/markup/subparser/success/3 1176s ok 5 /glib/markup/subparser/success/4 1176s ok 6 /glib/markup/subparser/success/5 1176s ok 7 /glib/markup/subparser/success/6 1176s # End of success tests 1176s # Start of failure tests 1176s ok 8 /glib/markup/subparser/failure/0 1176s ok 9 /glib/markup/subparser/failure/1 1176s ok 10 /glib/markup/subparser/failure/2 1176s ok 11 /glib/markup/subparser/failure/3 1176s ok 12 /glib/markup/subparser/failure/4 1176s ok 13 /glib/markup/subparser/failure/5 1176s ok 14 /glib/markup/subparser/failure/6 1176s # End of failure tests 1176s # End of subparser tests 1176s # End of markup tests 1176s # End of glib tests 1176s TAP version 14 1176s ok - glib/portal-support-snap-classic.test 1176s # Running test: glib/network-address.test 1176s # random seed: R02S7a316a03ff78fba36e0d3ad3cf669895 1176s 1..3 1176s # Start of portal-support tests 1176s # Start of snap-classic tests 1176s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/home 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/cache 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/config 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/data 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/state 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl/.dirs/runtime 1176s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/no-snapctl: No such file or directory 1176s ok 1 /portal-support/snap-classic/no-snapctl 1176s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/home 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/cache 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/system-config2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/config 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/system-data2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/data 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/state 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/runtime 1176s # Created snap.yaml in /tmp/test_portal-support-snap-classic_24R052/meta/snap.yaml 1176s # Created snapctl in /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none/.dirs/runtime/snapctl 1176s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/none: No such file or directory 1176s ok 2 /portal-support/snap-classic/none 1176s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/home 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/cache 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/system-config2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/config 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/system-data2 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/data 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/state 1176s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/runtime 1176s # Created snap.yaml in /tmp/test_portal-support-snap-classic_24R052/meta/snap.yaml 1176s # Created snapctl in /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all/.dirs/runtime/snapctl 1176s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_24R052/portal-support/snap-classic/all: No such file or directory 1176s ok 3 /portal-support/snap-classic/all 1176s # End of snap-classic tests 1176s # End of portal-support tests 1176s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_24R052: No such file or directory 1176s TAP version 14 1176s # random seed: R02Sd4d9db6896193a89098f10d8d04923ec 1176s 1..72 1176s # Start of network-address tests 1176s ok 1 /network-address/basic 1176s ok 2 /network-address/scope-id 1176s ok 3 /network-address/uri-scope-id 1176s ok 4 /network-address/to-string 1176s # Start of parse-host tests 1176s ok 5 /network-address/parse-host/0 1176s ok 6 /network-address/parse-host/1 1176s ok 7 /network-address/parse-host/2 1176s ok 8 /network-address/parse-host/3 1176s ok 9 /network-address/parse-host/4 1176s ok 10 /network-address/parse-host/5 1176s ok 11 /network-address/parse-host/6 1176s ok 12 /network-address/parse-host/7 1176s ok 13 /network-address/parse-host/8 1176s ok 14 /network-address/parse-host/9 1176s ok 15 /network-address/parse-host/10 1176s ok 16 /network-address/parse-host/11 1176s ok 17 /network-address/parse-host/12 1176s ok 18 /network-address/parse-host/13 1176s # End of parse-host tests 1176s # Start of parse-uri tests 1176s ok 19 /network-address/parse-uri/0 1176s ok 20 /network-address/parse-uri/1 1176s ok 21 /network-address/parse-uri/2 1176s ok 22 /network-address/parse-uri/3 1176s ok 23 /network-address/parse-uri/4 1176s ok 24 /network-address/parse-uri/5 1176s ok 25 /network-address/parse-uri/6 1176s ok 26 /network-address/parse-uri/7 1176s ok 27 /network-address/parse-uri/8 1176s ok 28 /network-address/parse-uri/9 1176s # End of parse-uri tests 1176s # Start of resolve-address tests 1176s # Input: 192.168.1.2 1176s ok 29 /network-address/resolve-address/0 1176s # Input: fe80::42 1176s ok 30 /network-address/resolve-address/1 1176s # Input: 192.168.1.2:80 1176s ok 31 /network-address/resolve-address/2 1176s # Input: [fe80::42] 1176s ok 32 /network-address/resolve-address/3 1176s # Input: [fe80::42]:80 1176s ok 33 /network-address/resolve-address/4 1176s # Input: 192.168.258 1176s ok 34 /network-address/resolve-address/5 1176s # Input: 192.11010306 1176s ok 35 /network-address/resolve-address/6 1176s # Input: 3232235778 1176s ok 36 /network-address/resolve-address/7 1176s # Input: 0300.0250.0001.0001 1176s ok 37 /network-address/resolve-address/8 1176s # Input: 0xC0.0xA8.0x01.0x02 1176s ok 38 /network-address/resolve-address/9 1176s # Input: 0xc0.0xa8.0x01.0x02 1176s ok 39 /network-address/resolve-address/10 1176s # Input: 0xc0a80102 1176s ok 40 /network-address/resolve-address/11 1176s # End of resolve-address tests 1176s # Start of loopback tests 1176s ok 41 /network-address/loopback/basic 1176s ok 42 /network-address/loopback/sync 1176s ok 43 /network-address/loopback/async 1176s # End of loopback tests 1176s # Start of localhost tests 1176s ok 44 /network-address/localhost/async 1176s ok 45 /network-address/localhost/sync 1176s # End of localhost tests 1176s # Start of happy-eyeballs tests 1176s ok 46 /network-address/happy-eyeballs/basic 1176s ok 47 /network-address/happy-eyeballs/parallel 1176s ok 48 /network-address/happy-eyeballs/slow-ipv4 1176s ok 49 /network-address/happy-eyeballs/slow-ipv6 1176s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1177s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1177s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1177s # /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. 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s ok 57 /network-address/happy-eyeballs/both-error 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1177s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1177s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1177s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1177s # End of happy-eyeballs tests 1177s # End of network-address tests 1177s # Start of gresolver tests 1177s # Start of resolve-address tests 1177s # Input: 192.168.1.2 1177s ok 61 /gresolver/resolve-address/0 1177s # Input: fe80::42 1177s ok 62 /gresolver/resolve-address/1 1177s # Input: 192.168.1.2:80 1177s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 1177s ok 63 /gresolver/resolve-address/2 1177s # Input: [fe80::42] 1177s # Error: Error resolving ?[fe80::42]?: Name or service not known 1177s ok 64 /gresolver/resolve-address/3 1177s # Input: [fe80::42]:80 1177s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 1177s ok 65 /gresolver/resolve-address/4 1177s # Input: 192.168.258 1177s # Error: Error resolving ?192.168.258?: Name or service not known 1177s ok 66 /gresolver/resolve-address/5 1177s # Input: 192.11010306 1177s # Error: Error resolving ?192.11010306?: Name or service not known 1177s ok 67 /gresolver/resolve-address/6 1177s # Input: 3232235778 1177s # Error: Error resolving ?3232235778?: Name or service not known 1177s ok 68 /gresolver/resolve-address/7 1177s # Input: 0300.0250.0001.0001 1177s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 1177s ok 69 /gresolver/resolve-address/8 1177s # Input: 0xC0.0xA8.0x01.0x02 1177s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 1177s ok 70 /gresolver/resolve-address/9 1177s # Input: 0xc0.0xa8.0x01.0x02 1177s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 1177s ok 71 /gresolver/resolve-address/10 1177s # Input: 0xc0a80102 1177s # Error: Error resolving ?0xc0a80102?: Name or service not known 1177s ok 72 /gresolver/resolve-address/11 1177s # End of resolve-address tests 1177s # End of gresolver tests 1177s ok - glib/network-address.test 1177s # Running test: glib/portal-support-none.test 1177s TAP version 14 1177s # random seed: R02S1c01a97e49a5a7cd13da81c7fbe3f841 1177s 1..1 1177s # Start of portal-support tests 1177s ok 1 /portal-support/none 1177s # End of portal-support tests 1177s ok - glib/portal-support-none.test 1177s # Running test: glib/struct-info.test 1177s TAP version 14 1177s # random seed: R02S5da5d8f2a606904462952b64b29ea021 1177s 1..4 1177s # Start of struct-info tests 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AJIC62/struct-info/field-iterators/.dirs/runtime 1177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1177s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1177s ok 1 /struct-info/field-iterators 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/home 1177s ok - glib/struct-info.test 1177s # Running test: glib/proxy-test.test 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AJIC62/struct-info/sizeof-gvalue/.dirs/runtime 1177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1177s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1177s ok 2 /struct-info/sizeof-gvalue 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AJIC62/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1177s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1177s ok 3 /struct-info/is-pointer-for-struct-method-arg 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AJIC62/struct-info/boxed/.dirs/runtime 1177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1177s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1177s ok 4 /struct-info/boxed 1177s # End of struct-info tests 1177s TAP version 14 1177s # random seed: R02S1b29f5743bc87bb8517ba2e8d0cf8fd1 1177s 1..11 1177s # Start of proxy tests 1177s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 1177s ok 1 /proxy/direct_sync 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163f820 and GSocketClientAsyncConnectData 0xa38c163ed90 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1640150 for GSocketClientAsyncConnectData 0xa38c163ed90 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s ok 2 /proxy/direct_async 1177s ok 3 /proxy/single_sync 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fcc0 and GSocketClientAsyncConnectData 0xa38c163ed90 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1640820 for GSocketClientAsyncConnectData 0xa38c163ed90 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s ok 4 /proxy/single_async 1177s ok 5 /proxy/multiple_sync 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163ff50 and GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641b80 for GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641b20 for GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s ok 6 /proxy/multiple_async 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1177s ok 7 /proxy/invalid-uris-sync 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fb10 and GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fcc0 and GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fb10 and GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c16401b0 for GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fcc0 and GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641db0 for GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s ok 8 /proxy/invalid-uris-async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163f820 and GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1177s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c16423e0 and GSocketClientAsyncConnectData 0xa38c16400a0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641b80 for GSocketClientAsyncConnectData 0xa38c16400a0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fb10 and GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641db0 for GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s ok 9 /proxy/dns 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163f820 and GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c16412a0 for GSocketClientAsyncConnectData 0xa38c163fee0 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163fb10 and GSocketClientAsyncConnectData 0xa38c163fd80 1177s ok - glib/proxy-test.test 1177s # Running test: glib/thread-pool-slow.test 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c16412a0 for GSocketClientAsyncConnectData 0xa38c163fd80 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1177s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1177s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa38c163f820 and GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1177s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa38c1641ac0 for GSocketClientAsyncConnectData 0xa38c1641d40 1177s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1177s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1177s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1177s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1177s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1177s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1177s ok 10 /proxy/override 1177s ok 11 /proxy/enumerator-ports 1177s # End of proxy tests 1177s TAP version 14 1177s # random seed: R02Sa50d3cdc4ad7f8ed7bdefcf6c1cf740c 1177s 1..7 1177s # Start of threadpool tests 1177s ok 1 /threadpool/functions 1177s # Executing: glib/thread-pool-slow.test 1178s ok 2 /threadpool/stop-unused 1178s # slow test /threadpool/stop-unused executed in 0.51 secs 1178s ok 3 /threadpool/pools 1178s # [unsorted] ===> pushed new thread with id:57, number of threads:1, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:82, number of threads:2, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:92, number of threads:3, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:33, number of threads:4, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:95, number of threads:5, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:11, number of threads:6, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:42, number of threads:7, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:16, number of threads:8, unprocessed:1 1178s # [unsorted] ===> pushed new thread with id:43, number of threads:9, unprocessed:2 1178s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:2 1178s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:2 1178s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:2 1178s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:3 1178s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:4 1178s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:5 1178s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:6 1178s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:7 1178s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:8 1178s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:9 1178s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:10 1178s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:11 1178s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:12 1178s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:13 1178s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:14 1178s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:15 1178s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:16 1178s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:17 1178s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:18 1178s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:19 1178s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:20 1178s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:21 1178s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:22 1178s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:23 1178s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:24 1178s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:25 1178s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:26 1178s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:27 1178s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:28 1178s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:29 1178s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:30 1178s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:31 1178s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:32 1178s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:33 1178s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:34 1178s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:35 1178s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:36 1178s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:37 1178s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:38 1178s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:39 1178s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:40 1178s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:41 1178s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:42 1178s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:43 1178s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:44 1178s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:45 1178s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:46 1178s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:47 1178s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:48 1178s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:49 1178s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:50 1178s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:51 1178s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:52 1178s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:53 1178s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:54 1178s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:55 1178s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:56 1178s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:57 1178s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:58 1178s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:59 1178s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:60 1178s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:61 1178s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:62 1178s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:63 1178s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:64 1178s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:65 1178s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:66 1178s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:67 1178s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:68 1178s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:69 1178s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:70 1178s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:71 1178s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:72 1178s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:73 1178s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:74 1178s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:75 1178s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:76 1178s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:77 1178s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:78 1178s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:79 1178s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:80 1178s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:81 1178s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:82 1178s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:83 1178s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:84 1178s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:85 1178s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:86 1178s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:87 1178s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:88 1178s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:89 1178s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:90 1178s ok 4 /threadpool/no-sort 1178s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:1 1178s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:2 1178s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:3 1178s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:4 1178s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:5 1178s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:6 1178s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:7 1178s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:8 1178s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:9 1178s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:10 1178s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:11 1178s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:12 1178s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:13 1178s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:14 1178s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:15 1178s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:16 1178s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:17 1178s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:18 1178s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:19 1178s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:20 1178s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:21 1178s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:22 1178s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:23 1178s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:24 1178s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:25 1178s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:26 1178s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:27 1178s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:28 1178s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:29 1178s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:30 1178s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:31 1178s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:32 1178s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:33 1178s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:34 1178s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:35 1178s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:36 1178s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:37 1178s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:38 1178s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:39 1178s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:40 1178s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:41 1178s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:42 1178s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:43 1178s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:44 1178s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:45 1178s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:46 1178s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:47 1178s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:48 1178s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:49 1178s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:50 1178s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:51 1178s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:52 1178s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:53 1178s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:54 1178s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:55 1178s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:56 1178s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:57 1178s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:58 1178s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:59 1178s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:60 1178s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:61 1178s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:62 1178s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:63 1178s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:64 1178s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:65 1178s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:66 1178s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:67 1178s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:68 1178s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:69 1178s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:70 1178s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:71 1178s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:72 1178s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:73 1178s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:74 1178s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:75 1178s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:76 1178s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:77 1178s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:78 1178s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:79 1178s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:80 1178s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:81 1178s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:82 1178s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:83 1178s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:84 1178s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:85 1178s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:86 1178s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:87 1178s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:88 1178s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:89 1178s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:90 1178s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:91 1178s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:92 1178s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:93 1178s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:94 1178s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:95 1178s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:96 1178s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:97 1178s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:98 1178s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:99 1178s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:100 1178s # Starting thread pool processing 1178s ok 5 /threadpool/sort 1178s ok 6 /threadpool/stop-unused-multiple 1178s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1178s # Pool idle thread count: 0, unprocessed jobs: 40 1179s # Pool idle thread count: 0, unprocessed jobs: 0 1179s # Pool idle thread count: 0, unprocessed jobs: 0 1179s # Pool idle thread count: 10, unprocessed jobs: 0 1179s # Pool idle thread count: 10, unprocessed jobs: 0 1180s # Pool idle thread count: 10, unprocessed jobs: 0 1180s # Pool idle thread count: 10, unprocessed jobs: 0 1180s # Pool idle thread count: 10, unprocessed jobs: 0 1180s # Pool idle thread count: 10, unprocessed jobs: 0 1181s # Pool idle thread count: 10, unprocessed jobs: 0 1181s # Pool idle thread count: 10, unprocessed jobs: 0 1181s # Pool idle thread count: 10, unprocessed jobs: 0 1181s # Pool idle thread count: 10, unprocessed jobs: 0 1182s # Pool idle thread count: 10, unprocessed jobs: 0 1182s # Pool idle thread count: 10, unprocessed jobs: 0 1182s # Pool idle thread count: 10, unprocessed jobs: 0 1182s # Pool idle thread count: 10, unprocessed jobs: 0 1182s # Executing: glib/thread-pool-slow.test 1183s # Pool idle thread count: 10, unprocessed jobs: 0 1183s # Pool idle thread count: 10, unprocessed jobs: 0 1183s # Pool idle thread count: 10, unprocessed jobs: 0 1183s # Pool idle thread count: 10, unprocessed jobs: 0 1184s # Pool idle thread count: 10, unprocessed jobs: 0 1184s # Pool idle thread count: 10, unprocessed jobs: 0 1184s # Pool idle thread count: 10, unprocessed jobs: 0 1184s # Pool idle thread count: 10, unprocessed jobs: 0 1185s # Pool idle thread count: 10, unprocessed jobs: 0 1185s # Pool idle thread count: 10, unprocessed jobs: 0 1185s # Pool idle thread count: 10, unprocessed jobs: 0 1185s # Pool idle thread count: 10, unprocessed jobs: 0 1186s # Pool idle thread count: 10, unprocessed jobs: 0 1186s # Pool idle thread count: 10, unprocessed jobs: 0 1186s # Pool idle thread count: 10, unprocessed jobs: 0 1186s # Pool idle thread count: 10, unprocessed jobs: 0 1187s # Pool idle thread count: 10, unprocessed jobs: 0 1187s # Pool idle thread count: 10, unprocessed jobs: 0 1187s # Pool idle thread count: 10, unprocessed jobs: 2 1187s # Pool idle thread count: 10, unprocessed jobs: 2 1187s # Pool idle thread count: 8, unprocessed jobs: 0 1187s # Pool idle thread count: 8, unprocessed jobs: 0 1187s # Executing: glib/thread-pool-slow.test 1188s # Pool idle thread count: 10, unprocessed jobs: 0 1188s # Pool idle thread count: 10, unprocessed jobs: 0 1188s # Pool idle thread count: 10, unprocessed jobs: 0 1188s # Pool idle thread count: 10, unprocessed jobs: 0 1189s # Pool idle thread count: 10, unprocessed jobs: 0 1189s # Pool idle thread count: 10, unprocessed jobs: 0 1189s # Pool idle thread count: 2, unprocessed jobs: 0 1189s # Pool idle thread count: 2, unprocessed jobs: 0 1190s # Pool idle thread count: 2, unprocessed jobs: 0 1190s # Pool idle thread count: 2, unprocessed jobs: 0 1190s # Pool idle thread count: 2, unprocessed jobs: 0 1190s # Pool idle thread count: 2, unprocessed jobs: 0 1191s # Pool idle thread count: 2, unprocessed jobs: 0 1191s # Pool idle thread count: 2, unprocessed jobs: 0 1191s # Pool idle thread count: 2, unprocessed jobs: 0 1191s # Pool idle thread count: 2, unprocessed jobs: 0 1192s # Pool idle thread count: 2, unprocessed jobs: 0 1192s # Pool idle thread count: 2, unprocessed jobs: 0 1192s # Pool idle thread count: 2, unprocessed jobs: 0 1192s # Pool idle thread count: 2, unprocessed jobs: 0 1192s # Executing: glib/thread-pool-slow.test 1193s # Pool idle thread count: 2, unprocessed jobs: 0 1193s # Pool idle thread count: 2, unprocessed jobs: 0 1193s # Pool idle thread count: 2, unprocessed jobs: 0 1193s # Pool idle thread count: 2, unprocessed jobs: 0 1194s # Pool idle thread count: 2, unprocessed jobs: 0 1194s # Pool idle thread count: 2, unprocessed jobs: 0 1194s # Pool idle thread count: 2, unprocessed jobs: 0 1194s # Pool idle thread count: 2, unprocessed jobs: 0 1195s # Pool idle thread count: 2, unprocessed jobs: 0 1195s # Pool idle thread count: 2, unprocessed jobs: 0 1195s # Pool idle thread count: 2, unprocessed jobs: 0 1195s # Pool idle thread count: 2, unprocessed jobs: 0 1196s # Pool idle thread count: 2, unprocessed jobs: 0 1196s # Pool idle thread count: 2, unprocessed jobs: 0 1196s # Pool idle thread count: 2, unprocessed jobs: 0 1196s # Pool idle thread count: 2, unprocessed jobs: 0 1197s # Pool idle thread count: 2, unprocessed jobs: 0 1197s # Pool idle thread count: 2, unprocessed jobs: 0 1197s # Pool idle thread count: 2, unprocessed jobs: 0 1197s # Pool idle thread count: 2, unprocessed jobs: 0 1197s # Executing: glib/thread-pool-slow.test 1198s ok 7 /threadpool/idle-time 1198s # slow test /threadpool/idle-time executed in 19.52 secs 1198s # End of threadpool tests 1198s ok - glib/thread-pool-slow.test 1198s # Running test: glib/actions.test 1198s TAP version 14 1198s # random seed: R02Sf4c14805b89502464c9dbc1917199cc9 1198s 1..13 1198s # Start of actions tests 1198s ok 1 /actions/basic 1198s ok 2 /actions/name 1198s ok 3 /actions/simplegroup 1198s ok 4 /actions/stateful 1198s ok 5 /actions/default-activate 1198s ok 6 /actions/entries 1198s ok 7 /actions/parse-detailed 1198s ok 8 /actions/property 1198s ok 9 /actions/no-properties 1198s # Start of dbus tests 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s ok 10 /actions/dbus/export 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1198s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok 11 /actions/dbus/threaded 1201s # slow test /actions/dbus/threaded executed in 2.73 secs 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok 12 /actions/dbus/bug679509 1201s # Start of export tests 1201s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok 13 /actions/dbus/export/error-handling 1201s # End of export tests 1201s # End of dbus tests 1201s # End of actions tests 1201s ok - glib/actions.test 1201s # Running test: glib/gdbus-connection-loss.test 1201s TAP version 14 1201s # random seed: R02S3ea9c2ee874a171af31f1aba2f883f59 1201s 1..1 1201s # Start of gdbus tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_VPLX52/gdbus/connection-loss/.dirs/runtime 1201s ok 1 /gdbus/connection-loss 1201s # End of gdbus tests 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok - glib/gdbus-connection-loss.test 1201s # Running test: glib/gdbus-sasl.test 1201s TAP version 14 1201s # random seed: R02S714953c6db447779ddbb97505d7ad345 1201s 1..1 1201s # Start of gdbus tests 1201s # Start of sasl tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_7RCV52/gdbus/sasl/server/.dirs/runtime 1201s # New handshake: EXTERNAL with incorrect initial response 1201s # C:“AUTH EXTERNAL 30†1201s # Expect: /^REJECTED.*$/ 1201s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1201s # New handshake: EXTERNAL without initial response, failing to authenticate 1201s # C:“AUTH EXTERNAL†1201s # Expect: /^DATA$/ 1201s # S:“DATA†1201s # C:“DATA 30†1201s # Expect: /^REJECTED.*$/ 1201s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1201s # New handshake: EXTERNAL with initial response 1201s # C:“AUTH EXTERNAL 31303030†1201s # Expect: /^OK [0-9a-f]+$/ 1201s # S:“OK f3a116f43db585e4a5660f30681746a0†1201s # New handshake: EXTERNAL without initial response 1201s # C:“AUTH EXTERNAL†1201s # Expect: /^DATA$/ 1201s # S:“DATA†1201s ok - glib/gdbus-sasl.test 1201s # Running test: glib/boxed.test 1201s ok - glib/boxed.test 1201s # Running test: glib/gnotification.test 1201s ok - glib/gnotification.test 1201s # Running test: glib/portal-support-flatpak-full.test 1201s ok - glib/portal-support-flatpak-full.test 1201s # Running test: glib/gdbus-address-get-session.test 1201s ok - glib/gdbus-address-get-session.test 1201s # Running test: glib/macros-c-99.test 1201s ok - glib/macros-c-99.test 1201s # Running test: glib/hmac.test 1201s ok - glib/hmac.test 1201s # Running test: glib/signalgroup.test 1201s # C:“DATA 31303030†1201s # Expect: /^OK [0-9a-f]+$/ 1201s # S:“OK f3a116f43db585e4a5660f30681746a0†1201s # New handshake: EXTERNAL with empty authorization identity 1201s # C:“AUTH EXTERNAL†1201s # Expect: /^DATA$/ 1201s # S:“DATA†1201s # C:“DATA†1201s # Expect: /^OK [0-9a-f]+$/ 1201s # S:“OK f3a116f43db585e4a5660f30681746a0†1201s # New handshake: EXTERNAL with empty authorization identity and whitespace 1201s # C:“AUTH EXTERNAL†1201s # Expect: /^DATA$/ 1201s # S:“DATA†1201s # C:“DATA †1201s # Expect: /^OK [0-9a-f]+$/ 1201s # S:“OK f3a116f43db585e4a5660f30681746a0†1201s ok 1 /gdbus/sasl/server 1201s # End of sasl tests 1201s # End of gdbus tests 1201s TAP version 14 1201s # random seed: R02S6daf6e87cdca96e98065201f898e87b2 1201s 1..27 1201s # Start of boxed tests 1201s ok 1 /boxed/define 1201s ok 2 /boxed/ownership 1201s ok 3 /boxed/closure 1201s ok 4 /boxed/date 1201s ok 5 /boxed/value 1201s ok 6 /boxed/string 1201s ok 7 /boxed/hashtable 1201s ok 8 /boxed/array 1201s ok 9 /boxed/ptrarray 1201s ok 10 /boxed/regex 1201s ok 11 /boxed/varianttype 1201s ok 12 /boxed/error 1201s ok 13 /boxed/datetime 1201s ok 14 /boxed/matchinfo 1201s ok 15 /boxed/keyfile 1201s ok 16 /boxed/mainloop 1201s ok 17 /boxed/maincontext 1201s ok 18 /boxed/source 1201s ok 19 /boxed/variantbuilder 1201s ok 20 /boxed/timezone 1201s ok 21 /boxed/pollfd 1201s ok 22 /boxed/markup 1201s ok 23 /boxed/thread 1201s ok 24 /boxed/checksum 1201s ok 25 /boxed/tree 1201s ok 26 /boxed/patternspec 1201s ok 27 /boxed/rand 1201s # End of boxed tests 1201s TAP version 14 1201s # random seed: R02Sa33c24f6abf6da1a3cfd48620a2d49aa 1201s 1..2 1201s # Start of gnotification tests 1201s ok 1 /gnotification/basic 1201s ok 2 /gnotification/properties 1201s # End of gnotification tests 1201s TAP version 14 1201s # random seed: R02Sbb14721cae96f994ad347fc41db00824 1201s 1..1 1201s # Start of portal-support tests 1201s # Start of flatpak tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/runtime 1201s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_UO0V52/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1201s ok 1 /portal-support/flatpak/full 1201s # End of flatpak tests 1201s # End of portal-support tests 1201s TAP version 14 1201s # random seed: R02S504db1855317d1a5f00166841960043f 1201s 1..2 1201s # Start of gdbus tests 1201s ok 1 /gdbus/x11-autolaunch 1201s ok 2 /gdbus/xdg-runtime 1201s # End of gdbus tests 1201s TAP version 14 1201s # random seed: R02Sc1f3b49df546a3ff87077ed782709159 1201s 1..4 1201s # Start of C tests 1201s ok 1 /C/standard-99 1201s # End of C tests 1201s # Start of alignof tests 1201s ok 2 /alignof/fallback 1201s # End of alignof tests 1201s # Start of assert tests 1201s ok 3 /assert/static 1201s # End of assert tests 1201s # Start of struct tests 1201s ok 4 /struct/sizeof_member 1201s # End of struct tests 1201s TAP version 14 1201s # random seed: R02S1a761554e66c7ce2fb38610cb3f7320a 1201s 1..37 1201s # Start of hmac tests 1201s ok 1 /hmac/sha1-1 1201s ok 2 /hmac/sha1-2 1201s ok 3 /hmac/sha1-3 1201s ok 4 /hmac/sha1-4 1201s ok 5 /hmac/sha1-5 1201s ok 6 /hmac/sha1-6 1201s ok 7 /hmac/sha1-7 1201s ok 8 /hmac/sha256-1 1201s ok 9 /hmac/sha256-2 1201s ok 10 /hmac/sha256-3 1201s ok 11 /hmac/sha256-4 1201s ok 12 /hmac/sha256-5 1201s ok 13 /hmac/sha256-6 1201s ok 14 /hmac/sha384-1 1201s ok 15 /hmac/sha384-2 1201s ok 16 /hmac/sha384-3 1201s ok 17 /hmac/sha384-4 1201s ok 18 /hmac/sha384-5 1201s ok 19 /hmac/sha384-6 1201s ok 20 /hmac/sha512-1 1201s ok 21 /hmac/sha512-2 1201s ok 22 /hmac/sha512-3 1201s ok 23 /hmac/sha512-4 1201s ok 24 /hmac/sha512-5 1201s ok 25 /hmac/sha512-6 1201s ok 26 /hmac/md5-1 1201s ok 27 /hmac/md5-2 1201s ok 28 /hmac/md5-3 1201s ok 29 /hmac/md5-4 1201s ok 30 /hmac/md5-5 1201s ok 31 /hmac/md5-6 1201s ok 32 /hmac/md5-7 1201s ok 33 /hmac/ref-unref 1201s ok 34 /hmac/copy 1201s ok 35 /hmac/for-data 1201s ok 36 /hmac/for-string 1201s ok 37 /hmac/for-bytes 1201s # End of hmac tests 1201s TAP version 14 1201s # random seed: R02Sce8244a94fd88b3bef6b7b5d0bd57930 1201s 1..9 1201s # Start of GObject tests 1201s # Start of SignalGroup tests 1201s ok 1 /GObject/SignalGroup/invalid 1201s ok 2 /GObject/SignalGroup/simple 1201s ok 3 /GObject/SignalGroup/changing-target 1201s ok 4 /GObject/SignalGroup/blocking 1201s ok 5 /GObject/SignalGroup/weak-ref-target 1201s ok 6 /GObject/SignalGroup/connect-object 1201s ok 7 /GObject/SignalGroup/signal-parsing 1201s ok 8 /GObject/SignalGroup/properties 1201s ok 9 /GObject/SignalGroup/interface 1201s # Start of signal-parsing tests 1201s # End of signal-parsing tests 1201s # End of SignalGroup tests 1201s ok - glib/signalgroup.test 1201s # SUMMARY: total=323; passed=322; skipped=1; failed=0; user=289.3s; system=80.2s; maxrss=151552 1201s # End of GObject tests 1201s autopkgtest [10:51:12]: test installed-tests: -----------------------] 1202s autopkgtest [10:51:13]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1202s installed-tests PASS 1202s autopkgtest [10:51:13]: test closure-refcount: preparing testbed 1203s Reading package lists... 1203s Building dependency tree... 1203s Reading state information... 1203s Starting pkgProblemResolver with broken count: 0 1203s Starting 2 pkgProblemResolver with broken count: 0 1203s Done 1203s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1204s autopkgtest [10:51:15]: test closure-refcount: [----------------------- 1204s Running test: glib/closure-refcount.test 1204s TAP version 14 1204s # random seed: R02S8e0e01cd31f86e4829ee2e969ff2d04d 1204s 1..1 1204s # Start of closure tests 1204s # Init 0x39b774e5d10 1204s # Yielding from main thread 1204s # Yielding from main thread 1204s # Yielding from main thread 1204s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from thread1 1205s # Yielding from thread2 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from thread1 1205s # Yielding from thread2 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from thread1 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from main thread 1205s # Yielding from thread2 1205s # Yielding from main thread 1205s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from thread1 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from thread2 1206s # Yielding from main thread 1206s # Yielding from thread1 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from thread2 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from thread1 1206s # Yielding from main thread 1206s # Yielding from main thread 1206s # Yielding from main thread 1207s # Yielding from thread2 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from thread1 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from thread2 1207s # Yielding from thread1 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from thread1 1207s # Yielding from main thread 1207s # Yielding from thread2 1207s # Yielding from main thread 1207s # Yielding from main thread 1207s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from thread1 1208s # Yielding from main thread 1208s # Yielding from thread2 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from thread1 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from thread2 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from thread1 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1208s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from thread2 1209s # Yielding from main thread 1209s # Yielding from thread1 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from thread2 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from thread1 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from thread2 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1209s # Yielding from main thread 1210s # Yielding from thread2 1210s # Yielding from thread1 1210s # Yielding from main thread 1210s # Yielding from main thread 1210s # Yielding from main thread 1210s # Yielding from main thread 1210s # Yielding from main thread 1210s # Stopping 1210s # Stopped 1210s ok 1 /closure/refcount 1210s # slow test /closure/refcount executed in 5.58 secs 1210s # End of closure tests 1210s PASS: glib/closure-refcount.test 1210s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=11.1s; system=0.0s; maxrss=4096 1210s autopkgtest [10:51:21]: test closure-refcount: -----------------------] 1211s autopkgtest [10:51:22]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1211s closure-refcount PASS 1211s autopkgtest [10:51:22]: test debugcontroller: preparing testbed 1211s Reading package lists... 1211s Building dependency tree... 1211s Reading state information... 1212s Starting pkgProblemResolver with broken count: 0 1212s Starting 2 pkgProblemResolver with broken count: 0 1212s Done 1212s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1213s autopkgtest [10:51:24]: test debugcontroller: [----------------------- 1213s Running test: glib/debugcontroller.test 1213s TAP version 14 1213s # random seed: R02S74a572317454a6a4665b53bee872c789 1213s 1..3 1213s # Start of debug-controller tests 1213s # Start of dbus tests 1213s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1213s # GLib-GIO-DEBUG: Debug output enabled 1213s # GLib-GIO-DEBUG: Debug output disabled 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s ok 1 /debug-controller/dbus/basic 1213s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s ok 2 /debug-controller/dbus/duplicate 1213s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1213s # GLib-GIO-DEBUG: Debug output enabled 1213s # GLib-GIO-DEBUG: Debug output disabled 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1213s ok 3 /debug-controller/dbus/properties 1213s # End of dbus tests 1213s # End of debug-controller tests 1213s PASS: glib/debugcontroller.test 1213s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=10240 1213s autopkgtest [10:51:24]: test debugcontroller: -----------------------] 1214s autopkgtest [10:51:25]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1214s debugcontroller PASS 1214s autopkgtest [10:51:25]: test gdbus-server-auth: preparing testbed 1214s Reading package lists... 1214s Building dependency tree... 1214s Reading state information... 1214s Starting pkgProblemResolver with broken count: 0 1215s Starting 2 pkgProblemResolver with broken count: 0 1215s Done 1215s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1216s autopkgtest [10:51:27]: test gdbus-server-auth: [----------------------- 1216s Running test: glib/gdbus-server-auth.test 1216s TAP version 14 1216s # random seed: R02Sd217b0cedbb61204703a4833c205fe7d 1216s 1..9 1216s # Start of gdbus tests 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/.dirs/runtime 1216s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-MIOY52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1216s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-MIOY52/dbus-890DEMp6 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1216s ok 1 /gdbus/server-auth 1216s # Start of server-auth tests 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/abstract/.dirs/runtime 1216s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-7EIY52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1216s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-7EIY52/dbus-svh7ISwM 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1216s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1216s ok 2 /gdbus/server-auth/abstract 1216s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/home 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/cache 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/system-config2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/config 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/system-data2 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/data 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/state 1216s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/tcp/.dirs/runtime 1216s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1216s # Connectable address: tcp:host=127.0.0.1,port=36259 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1216s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1216s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1216s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1216s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1216s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1216s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1217s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1217s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1217s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1217s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1217s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1217s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1217s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1217s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1217s ok 3 /gdbus/server-auth/tcp 1217s # slow test /gdbus/server-auth/tcp executed in 0.90 secs 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/.dirs/runtime 1217s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-DJRZ52 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1217s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-DJRZ52/dbus-eTxqkSqu 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1217s ok 4 /gdbus/server-auth/anonymous 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/.dirs/runtime 1217s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-1I5X52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1217s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-1I5X52/dbus-yX002Bvw 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1217s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1217s ok 5 /gdbus/server-auth/external 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/.dirs/runtime 1217s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-U5LY52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1217s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-U5LY52/dbus-DnL7mflA 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1217s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1217s ok 6 /gdbus/server-auth/sha1 1217s # Start of anonymous tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1217s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1217s # Connectable address: tcp:host=127.0.0.1,port=46781 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1217s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1217s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1217s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1218s ok 7 /gdbus/server-auth/anonymous/tcp 1218s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.88 secs 1218s # End of anonymous tests 1218s # Start of external tests 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/external/require-same-user/.dirs/runtime 1218s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-8M4Z52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1218s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0WOY52/gdbus-server-auth-8M4Z52/dbus-R4x2xd6h 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16566 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1218s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16566,uid=1000,gid=1000 1218s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16566 1218s ok 8 /gdbus/server-auth/external/require-same-user 1218s # End of external tests 1218s # Start of sha1 tests 1218s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/home 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/cache 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/config 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/data 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/state 1218s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0WOY52/gdbus/server-auth/sha1/tcp/.dirs/runtime 1218s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1218s # Connectable address: tcp:host=127.0.0.1,port=44025 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1218s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1218s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1218s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1218s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1218s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1219s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1219s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1219s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1219s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1219s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1219s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1219s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1219s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1219s ok 9 /gdbus/server-auth/sha1/tcp 1219s # slow test /gdbus/server-auth/sha1/tcp executed in 0.89 secs 1219s # End of sha1 tests 1219s # End of server-auth tests 1219s # End of gdbus tests 1219s PASS: glib/gdbus-server-auth.test 1219s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=8192 1219s autopkgtest [10:51:30]: test gdbus-server-auth: -----------------------] 1219s gdbus-server-auth PASS 1219s autopkgtest [10:51:30]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1220s autopkgtest [10:51:31]: test gdbus-threading: preparing testbed 1220s Reading package lists... 1220s Building dependency tree... 1220s Reading state information... 1220s Starting pkgProblemResolver with broken count: 0 1220s Starting 2 pkgProblemResolver with broken count: 0 1220s Done 1221s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1221s autopkgtest [10:51:32]: test gdbus-threading: [----------------------- 1222s Running test: glib/gdbus-threading.test 1222s TAP version 14 1222s # random seed: R02S60ed714d297c2a3ef7e8eeda73df9e3e 1222s 1..3 1222s # Start of gdbus tests 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TNN152/gdbus/delivery-in-thread/.dirs/runtime 1222s ok 1 /gdbus/delivery-in-thread 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TNN152/gdbus/method-calls-in-thread/.dirs/runtime 1222s # GLib-GIO-DEBUG: refcount of 0x15a61ea807a0 is not right (2 rather than 1) in test_method_calls_in_thread(), sleeping 1222s ok 2 /gdbus/method-calls-in-thread 1222s # slow test /gdbus/method-calls-in-thread executed in 0.85 secs 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_TNN152/gdbus/threaded-singleton/.dirs/runtime 1223s # GLib-GIO-DEBUG: refcount of 0x6329fc006f00 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1224s # GLib-GIO-DEBUG: refcount of 0x6329fc004f40 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1224s # GLib-GIO-DEBUG: refcount of 0x6329fc006630 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1224s ok 3 /gdbus/threaded-singleton 1224s # slow test /gdbus/threaded-singleton executed in 1.80 secs 1224s # End of gdbus tests 1224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1224s PASS: glib/gdbus-threading.test 1224s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=0.4s; maxrss=8192 1225s autopkgtest [10:51:36]: test gdbus-threading: -----------------------] 1225s gdbus-threading PASS 1225s autopkgtest [10:51:36]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1225s autopkgtest [10:51:36]: test gmenumodel: preparing testbed 1226s Reading package lists... 1226s Building dependency tree... 1226s Reading state information... 1226s Starting pkgProblemResolver with broken count: 0 1226s Starting 2 pkgProblemResolver with broken count: 0 1226s Done 1226s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1227s autopkgtest [10:51:38]: test gmenumodel: [----------------------- 1227s Running test: glib/gmenumodel.test 1227s TAP version 14 1227s # random seed: R02Sdafb46c5d9ba5852e4fee371ec854797 1227s 1..15 1227s # Start of gmenu tests 1230s ok 1 /gmenu/equality 1230s # slow test /gmenu/equality executed in 2.07 secs 1232s ok 2 /gmenu/random 1232s # slow test /gmenu/random executed in 2.89 secs 1232s ok 3 /gmenu/attributes 1232s ok 4 /gmenu/links 1232s ok 5 /gmenu/mutable 1232s ok 6 /gmenu/convenience 1232s ok 7 /gmenu/menuitem 1232s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1232s ok 8 /gmenu/input-validation 1232s # Start of dbus tests 1233s Executing: glib/gmenumodel.test 1234s ok 9 /gmenu/dbus/roundtrip 1234s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1234s ok 10 /gmenu/dbus/subscriptions 1236s ok 11 /gmenu/dbus/threaded 1236s # slow test /gmenu/dbus/threaded executed in 1.84 secs 1236s # Start of peer tests 1237s ok 12 /gmenu/dbus/peer/roundtrip 1237s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1237s ok 13 /gmenu/dbus/peer/subscriptions 1237s # End of peer tests 1237s # Start of export tests 1237s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1237s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1237s ok 14 /gmenu/dbus/export/error-handling 1237s # End of export tests 1237s # End of dbus tests 1237s # Start of attributes tests 1237s ok 15 /gmenu/attributes/iterate 1237s # End of attributes tests 1237s # End of gmenu tests 1237s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1237s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1237s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1237s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1237s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1237s PASS: glib/gmenumodel.test 1237s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=8.5s; system=0.2s; maxrss=24576 1238s autopkgtest [10:51:49]: test gmenumodel: -----------------------] 1238s gmenumodel PASS 1238s autopkgtest [10:51:49]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1238s autopkgtest [10:51:49]: test mainloop: preparing testbed 1239s Reading package lists... 1239s Building dependency tree... 1239s Reading state information... 1239s Starting pkgProblemResolver with broken count: 0 1239s Starting 2 pkgProblemResolver with broken count: 0 1239s Done 1240s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1240s autopkgtest [10:51:51]: test mainloop: [----------------------- 1240s Running test: glib/mainloop.test 1240s TAP version 14 1240s # random seed: R02S83ad7e3c9970c35a7db5eec23a0ca150 1240s 1..45 1240s # Start of maincontext tests 1240s ok 1 /maincontext/basic 1240s # Add same-priority sources: 37 1241s # Find each source: 8 1241s # Remove in random order: 41 1241s ok 2 /maincontext/nsources_same_priority 1241s # Add different-priority sources: 37 1241s # Find each source: 9 1241s # Remove in random order: 46 1241s ok 3 /maincontext/nsources_different_priority 1241s # Add sources from threads: 207 1241s # Remove sources from threads: 222 1241s ok 4 /maincontext/nsources_threadpool 1241s ok 5 /maincontext/source_finalization 1241s # /maincontext/idle-once summary: Test g_idle_add_once() works 1241s ok 6 /maincontext/idle-once 1241s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1241s ok 7 /maincontext/timeout-once 1241s # Start of source_finalization_from_source tests 1241s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 8 /maincontext/source_finalization_from_source/0 1241s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 9 /maincontext/source_finalization_from_source/1 1241s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 10 /maincontext/source_finalization_from_source/2 1241s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 11 /maincontext/source_finalization_from_source/3 1241s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 12 /maincontext/source_finalization_from_source/4 1241s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 13 /maincontext/source_finalization_from_source/5 1241s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 14 /maincontext/source_finalization_from_source/6 1241s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 15 /maincontext/source_finalization_from_source/7 1241s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 16 /maincontext/source_finalization_from_source/8 1241s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1241s ok 17 /maincontext/source_finalization_from_source/9 1241s # End of source_finalization_from_source tests 1241s # Start of source_finalization_from_dispatch tests 1241s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1241s ok 18 /maincontext/source_finalization_from_dispatch/0 1241s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1241s ok 19 /maincontext/source_finalization_from_dispatch/1 1241s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1241s ok 20 /maincontext/source_finalization_from_dispatch/2 1241s # End of source_finalization_from_dispatch tests 1241s # End of maincontext tests 1241s # Start of mainloop tests 1241s ok 21 /mainloop/basic 1241s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1241s ok 23 /mainloop/priorities 1242s ok 24 /mainloop/invoke 1242s # slow test /mainloop/invoke executed in 0.50 secs 1243s ok 25 /mainloop/child_sources 1243s # slow test /mainloop/child_sources executed in 1.18 secs 1245s ok 26 /mainloop/recursive_child_sources 1245s # slow test /mainloop/recursive_child_sources executed in 2.16 secs 1245s ok 27 /mainloop/recursive_loop_child_sources 1245s ok 28 /mainloop/swapping_child_sources 1245s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1245s ok 29 /mainloop/blocked_child_sources 1246s Executing: glib/mainloop.test 1246s ok 30 /mainloop/source_time 1246s # slow test /mainloop/source_time executed in 1.00 secs 1246s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1246s ok 31 /mainloop/overflow 1247s ok 32 /mainloop/ready-time 1247s # slow test /mainloop/ready-time executed in 0.50 secs 1247s ok 33 /mainloop/wakeup 1247s ok 34 /mainloop/remove-invalid 1247s ok 35 /mainloop/unref-while-pending 1248s ok 36 /mainloop/unix-fd 1248s # slow test /mainloop/unix-fd executed in 1.64 secs 1248s ok 37 /mainloop/unix-fd-source 1248s ok 38 /mainloop/source-unix-fd-api 1249s ok 39 /mainloop/wait 1249s ok 40 /mainloop/unix-file-poll 1249s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1249s ok 41 /mainloop/unix-fd-priority 1249s ok 42 /mainloop/nfds 1249s ok 43 /mainloop/steal-fd 1249s # Start of ownerless-polling tests 1249s ok 44 /mainloop/ownerless-polling/attach-first 1249s ok 45 /mainloop/ownerless-polling/pop-first 1249s # End of ownerless-polling tests 1249s # End of mainloop tests 1249s PASS: glib/mainloop.test 1249s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.3s; system=1.6s; maxrss=18432 1249s autopkgtest [10:52:00]: test mainloop: -----------------------] 1249s autopkgtest [10:52:00]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1249s mainloop PASS 1250s autopkgtest [10:52:01]: test memory-monitor-dbus: preparing testbed 1250s Reading package lists... 1250s Building dependency tree... 1250s Reading state information... 1251s Starting pkgProblemResolver with broken count: 0 1251s Starting 2 pkgProblemResolver with broken count: 0 1251s Done 1251s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1252s autopkgtest [10:52:03]: test memory-monitor-dbus: [----------------------- 1252s Running test: glib/memory-monitor-dbus.test 1252s TAP version 13 1252s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1252s # Received memory warning signal, level 1252s # Received memory warning signal, level 1252s # Received memory warning signal, level 1252s 1..1 1252s PASS: glib/memory-monitor-dbus.test 1252s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=36864 1253s autopkgtest [10:52:04]: test memory-monitor-dbus: -----------------------] 1253s autopkgtest [10:52:04]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1253s memory-monitor-dbus PASS 1253s autopkgtest [10:52:04]: test socket: preparing testbed 1254s Reading package lists... 1254s Building dependency tree... 1254s Reading state information... 1254s Starting pkgProblemResolver with broken count: 0 1254s Starting 2 pkgProblemResolver with broken count: 0 1254s Done 1255s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1255s autopkgtest [10:52:06]: test socket: [----------------------- 1255s Running test: glib/socket.test 1255s TAP version 14 1255s # random seed: R02S68d726a29b9d1c21af06d5514ac3893c 1255s 1..28 1255s # Start of socket tests 1256s ok 1 /socket/ipv4_sync 1256s # slow test /socket/ipv4_sync executed in 1.00 secs 1257s ok 2 /socket/ipv4_async 1257s # slow test /socket/ipv4_async executed in 1.00 secs 1257s ok 3 /socket/ipv6_sync 1257s ok 4 /socket/ipv6_async 1257s ok 5 /socket/ipv6_v4mapped 1258s ok 6 /socket/close_graceful 1258s # slow test /socket/close_graceful executed in 1.00 secs 1258s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1258s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1258s ok 8 /socket/fd_reuse 1258s ok 9 /socket/address 1258s ok 10 /socket/unix-from-fd 1258s ok 11 /socket/unix-connection 1258s ok 12 /socket/unix-connection-ancillary-data 1258s ok 13 /socket/source-postmortem 1258s ok 14 /socket/read_write 1258s ok 15 /socket/read_writev 1258s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1259s ok 16 /socket/receive_bytes 1259s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1259s ok 17 /socket/receive_bytes_from 1259s # Start of ipv4_sync tests 1259s ok 18 /socket/ipv4_sync/datagram 1259s # Start of datagram tests 1260s ok 19 /socket/ipv4_sync/datagram/timeouts 1260s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1260s # End of datagram tests 1260s # End of ipv4_sync tests 1260s # Start of ipv6_sync tests 1260s ok 20 /socket/ipv6_sync/datagram 1260s # Start of datagram tests 1261s ok 21 /socket/ipv6_sync/datagram/timeouts 1261s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1261s # End of datagram tests 1261s # End of ipv6_sync tests 1261s # Start of reuse tests 1261s ok 22 /socket/reuse/tcp 1261s ok 23 /socket/reuse/udp 1261s # End of reuse tests 1261s # Start of get_available tests 1261s ok 24 /socket/get_available/datagram 1261s ok 25 /socket/get_available/stream 1261s # End of get_available tests 1261s # Start of credentials tests 1261s # Supported on this OS: GCredentials:linux-ucred:pid=0 1261s ok 26 /socket/credentials/tcp_client 1261s # Supported on this OS: GCredentials:linux-ucred:pid=0 1261s ok 27 /socket/credentials/tcp_server 1261s # Supported on this OS: GCredentials:linux-ucred:pid=18431,uid=1000,gid=1000 1261s ok 28 /socket/credentials/unix_socketpair 1261s # End of credentials tests 1261s # End of socket tests 1261s PASS: glib/socket.test 1261s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=8192 1261s autopkgtest [10:52:12]: test socket: -----------------------] 1262s autopkgtest [10:52:13]: test socket: - - - - - - - - - - results - - - - - - - - - - 1262s socket PASS 1262s autopkgtest [10:52:13]: test testfilemonitor: preparing testbed 1262s Reading package lists... 1262s Building dependency tree... 1262s Reading state information... 1263s Starting pkgProblemResolver with broken count: 0 1263s Starting 2 pkgProblemResolver with broken count: 0 1263s Done 1263s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1264s autopkgtest [10:52:15]: test testfilemonitor: [----------------------- 1264s Running test: glib/testfilemonitor.test 1264s TAP version 14 1264s # random seed: R02S377b32377cb80b91b0e637ee18c63340 1264s 1..8 1264s # Start of monitor tests 1264s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1264s # Using temporary directory: /tmp/gio-test-testfilemonitor_CGWT52 1264s # Using GFileMonitor GInotifyFileMonitor 1266s ok 1 /monitor/atomic-replace 1266s # slow test /monitor/atomic-replace executed in 2.00 secs 1266s # Using temporary directory: /tmp/gio-test-testfilemonitor_CTZT52 1266s # Using GFileMonitor GInotifyFileMonitor 1268s ok 2 /monitor/file-changes 1268s # slow test /monitor/file-changes executed in 2.50 secs 1268s # Using temporary directory: /tmp/gio-test-testfilemonitor_TRT652 1268s # Using GFileMonitor GInotifyFileMonitor 1269s Executing: glib/testfilemonitor.test 1272s ok 3 /monitor/dir-monitor 1272s # slow test /monitor/dir-monitor executed in 3.50 secs 1272s # Using temporary directory: /tmp/gio-test-testfilemonitor_J5DT52 1272s # Using GFileMonitor GInotifyFileMonitor 1274s Executing: glib/testfilemonitor.test 1279s Executing: glib/testfilemonitor.test 1284s Executing: glib/testfilemonitor.test 1289s Executing: glib/testfilemonitor.test 1294s Executing: glib/testfilemonitor.test 1297s ok 4 /monitor/dir-not-existent 1297s # slow test /monitor/dir-not-existent executed in 25.02 secs 1297s # Using temporary directory: /tmp/gio-test-testfilemonitor_LZLU52 1297s # Using GFileMonitor 0 GInotifyFileMonitor 1297s # Using GFileMonitor 1 GInotifyFileMonitor 1299s Executing: glib/testfilemonitor.test 1299s ok 5 /monitor/cross-dir-moves 1299s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1299s # Using temporary directory: /tmp/gio-test-testfilemonitor_5SMU52 1299s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 1299s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1299s ok 6 /monitor/finalize-in-callback 1299s # Using temporary directory: /tmp/gio-test-testfilemonitor_RZ3T52 1299s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1299s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1299s ok 7 /monitor/root 1299s # Start of file tests 1299s # Using temporary directory: /tmp/gio-test-testfilemonitor_PU3T52 1299s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1299s # Running with hard link tests 1299s # Using GFileMonitor GInotifyFileMonitor 1302s # Event 0 at expected index 7 skipped because it is marked as optional 1302s # Event 2 at expected index 11 skipped because it is marked as optional 1302s ok 8 /monitor/file/hard-links 1302s # slow test /monitor/file/hard-links executed in 3.50 secs 1302s # End of file tests 1302s # End of monitor tests 1302s PASS: glib/testfilemonitor.test 1302s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=8192 1303s autopkgtest [10:52:54]: test testfilemonitor: -----------------------] 1303s testfilemonitor PASS 1303s autopkgtest [10:52:54]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1304s autopkgtest [10:52:55]: test thread-pool-slow: preparing testbed 1304s Reading package lists... 1304s Building dependency tree... 1304s Reading state information... 1304s Starting pkgProblemResolver with broken count: 0 1304s Starting 2 pkgProblemResolver with broken count: 0 1304s Done 1305s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1305s autopkgtest [10:52:56]: test thread-pool-slow: [----------------------- 1306s Running test: glib/thread-pool-slow.test 1306s TAP version 14 1306s # random seed: R02S99d5d2096ccc15c8ecb52139bdb6e67b 1306s 1..7 1306s # Start of threadpool tests 1306s ok 1 /threadpool/functions 1306s ok 2 /threadpool/stop-unused 1306s # slow test /threadpool/stop-unused executed in 0.51 secs 1306s ok 3 /threadpool/pools 1306s # [unsorted] ===> pushed new thread with id:78, number of threads:1, unprocessed:1 1306s # [unsorted] ===> pushed new thread with id:48, number of threads:2, unprocessed:2 1306s # [unsorted] ===> pushed new thread with id:68, number of threads:3, unprocessed:3 1306s # [unsorted] ===> pushed new thread with id:82, number of threads:4, unprocessed:4 1306s # [unsorted] ===> pushed new thread with id:11, number of threads:5, unprocessed:5 1306s # [unsorted] ===> pushed new thread with id:76, number of threads:6, unprocessed:5 1306s # [unsorted] ===> pushed new thread with id:28, number of threads:7, unprocessed:6 1306s # [unsorted] ===> pushed new thread with id:80, number of threads:8, unprocessed:7 1306s # [unsorted] ===> pushed new thread with id:17, number of threads:9, unprocessed:8 1306s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:9 1306s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:10 1306s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:11 1306s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:12 1306s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:13 1306s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:14 1306s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:15 1306s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:16 1306s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:17 1306s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:18 1306s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:19 1306s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:19 1306s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:19 1306s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:19 1306s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:19 1306s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:20 1306s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:20 1306s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:20 1306s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:21 1306s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:22 1306s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:23 1306s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:24 1306s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:25 1306s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:26 1306s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:27 1306s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:28 1306s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:29 1306s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:30 1306s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:31 1306s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:29 1306s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:30 1306s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:31 1306s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:32 1306s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:33 1306s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:34 1306s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:35 1306s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:36 1306s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:37 1306s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:38 1306s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:39 1306s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:40 1306s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:41 1306s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:42 1306s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:43 1306s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:44 1306s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:45 1306s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:46 1306s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:47 1306s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:48 1306s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:49 1306s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:50 1306s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:51 1306s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:52 1306s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:53 1306s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:54 1306s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:55 1306s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:56 1306s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:57 1306s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:58 1306s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:59 1306s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:60 1306s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:61 1306s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:62 1306s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:63 1306s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:64 1306s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:65 1306s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:66 1306s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:67 1306s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:68 1306s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:69 1306s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:70 1306s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:71 1306s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:72 1306s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:73 1306s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:74 1306s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:75 1306s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:76 1306s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:77 1306s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:78 1306s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:79 1306s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:80 1306s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:81 1306s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:82 1306s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:83 1306s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:84 1306s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:85 1306s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:86 1306s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:87 1306s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:88 1306s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:89 1306s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:90 1306s ok 4 /threadpool/no-sort 1306s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:1 1306s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:2 1306s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:3 1306s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:4 1306s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:5 1306s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:6 1306s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:7 1306s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:8 1306s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:9 1306s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:10 1306s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:11 1306s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:12 1306s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:13 1306s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:14 1306s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:15 1306s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:16 1306s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:17 1306s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:18 1306s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:19 1306s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:20 1306s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:21 1306s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:22 1306s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:23 1306s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:24 1306s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:25 1306s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:26 1306s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:27 1306s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:28 1306s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:29 1306s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:30 1306s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:31 1306s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:32 1306s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:33 1306s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:34 1306s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:35 1306s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:36 1306s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:37 1306s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:38 1306s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:39 1306s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:40 1306s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:41 1306s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:42 1306s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:43 1306s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:44 1306s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:45 1306s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:46 1306s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:47 1306s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:48 1306s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:49 1306s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:50 1306s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:51 1306s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:52 1306s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:53 1306s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:54 1306s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:55 1306s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:56 1306s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:57 1306s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:58 1306s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:59 1306s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:60 1306s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:61 1306s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:62 1306s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:63 1306s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:64 1306s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:65 1306s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:66 1306s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:67 1306s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:68 1306s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:69 1306s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:70 1306s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:71 1306s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:72 1306s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:73 1306s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:74 1306s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:75 1306s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:76 1306s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:77 1306s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:78 1306s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:79 1306s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:80 1306s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:81 1306s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:82 1306s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:83 1306s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:84 1306s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:85 1306s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:86 1306s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:87 1306s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:88 1306s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:89 1306s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:90 1306s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:91 1306s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:92 1306s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:93 1306s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:94 1306s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:95 1306s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:96 1306s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:97 1306s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:98 1306s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:99 1306s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:100 1306s # Starting thread pool processing 1306s ok 5 /threadpool/sort 1307s ok 6 /threadpool/stop-unused-multiple 1307s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1307s # Pool idle thread count: 0, unprocessed jobs: 48 1307s # Pool idle thread count: 0, unprocessed jobs: 0 1307s # Pool idle thread count: 0, unprocessed jobs: 0 1308s # Pool idle thread count: 10, unprocessed jobs: 0 1308s # Pool idle thread count: 10, unprocessed jobs: 0 1308s # Pool idle thread count: 10, unprocessed jobs: 0 1308s # Pool idle thread count: 10, unprocessed jobs: 0 1309s # Pool idle thread count: 10, unprocessed jobs: 0 1309s # Pool idle thread count: 10, unprocessed jobs: 0 1309s # Pool idle thread count: 10, unprocessed jobs: 0 1309s # Pool idle thread count: 10, unprocessed jobs: 0 1310s # Pool idle thread count: 10, unprocessed jobs: 0 1310s # Pool idle thread count: 10, unprocessed jobs: 0 1310s # Pool idle thread count: 10, unprocessed jobs: 0 1310s # Pool idle thread count: 10, unprocessed jobs: 0 1311s # Pool idle thread count: 10, unprocessed jobs: 0 1311s # Pool idle thread count: 10, unprocessed jobs: 0 1311s Executing: glib/thread-pool-slow.test 1311s # Pool idle thread count: 10, unprocessed jobs: 0 1311s # Pool idle thread count: 10, unprocessed jobs: 0 1312s # Pool idle thread count: 10, unprocessed jobs: 0 1312s # Pool idle thread count: 10, unprocessed jobs: 0 1312s # Pool idle thread count: 10, unprocessed jobs: 0 1312s # Pool idle thread count: 10, unprocessed jobs: 0 1313s # Pool idle thread count: 10, unprocessed jobs: 0 1313s # Pool idle thread count: 10, unprocessed jobs: 0 1313s # Pool idle thread count: 10, unprocessed jobs: 0 1313s # Pool idle thread count: 10, unprocessed jobs: 0 1314s # Pool idle thread count: 10, unprocessed jobs: 0 1314s # Pool idle thread count: 10, unprocessed jobs: 0 1314s # Pool idle thread count: 10, unprocessed jobs: 0 1314s # Pool idle thread count: 10, unprocessed jobs: 0 1315s # Pool idle thread count: 10, unprocessed jobs: 0 1315s # Pool idle thread count: 10, unprocessed jobs: 0 1315s # Pool idle thread count: 10, unprocessed jobs: 0 1315s # Pool idle thread count: 10, unprocessed jobs: 0 1316s # Pool idle thread count: 10, unprocessed jobs: 2 1316s # Pool idle thread count: 10, unprocessed jobs: 2 1316s # Pool idle thread count: 8, unprocessed jobs: 0 1316s # Pool idle thread count: 8, unprocessed jobs: 0 1316s Executing: glib/thread-pool-slow.test 1316s # Pool idle thread count: 10, unprocessed jobs: 0 1316s # Pool idle thread count: 10, unprocessed jobs: 0 1317s # Pool idle thread count: 10, unprocessed jobs: 0 1317s # Pool idle thread count: 10, unprocessed jobs: 0 1317s # Pool idle thread count: 10, unprocessed jobs: 0 1317s # Pool idle thread count: 10, unprocessed jobs: 0 1318s # Pool idle thread count: 2, unprocessed jobs: 0 1318s # Pool idle thread count: 2, unprocessed jobs: 0 1318s # Pool idle thread count: 2, unprocessed jobs: 0 1318s # Pool idle thread count: 2, unprocessed jobs: 0 1319s # Pool idle thread count: 2, unprocessed jobs: 0 1319s # Pool idle thread count: 2, unprocessed jobs: 0 1319s # Pool idle thread count: 2, unprocessed jobs: 0 1319s # Pool idle thread count: 2, unprocessed jobs: 0 1320s # Pool idle thread count: 2, unprocessed jobs: 0 1320s # Pool idle thread count: 2, unprocessed jobs: 0 1320s # Pool idle thread count: 2, unprocessed jobs: 0 1320s # Pool idle thread count: 2, unprocessed jobs: 0 1321s # Pool idle thread count: 2, unprocessed jobs: 0 1321s # Pool idle thread count: 2, unprocessed jobs: 0 1321s Executing: glib/thread-pool-slow.test 1321s # Pool idle thread count: 2, unprocessed jobs: 0 1321s # Pool idle thread count: 2, unprocessed jobs: 0 1322s # Pool idle thread count: 2, unprocessed jobs: 0 1322s # Pool idle thread count: 2, unprocessed jobs: 0 1322s # Pool idle thread count: 2, unprocessed jobs: 0 1322s # Pool idle thread count: 2, unprocessed jobs: 0 1323s # Pool idle thread count: 2, unprocessed jobs: 0 1323s # Pool idle thread count: 2, unprocessed jobs: 0 1323s # Pool idle thread count: 2, unprocessed jobs: 0 1323s # Pool idle thread count: 2, unprocessed jobs: 0 1324s # Pool idle thread count: 2, unprocessed jobs: 0 1324s # Pool idle thread count: 2, unprocessed jobs: 0 1324s # Pool idle thread count: 2, unprocessed jobs: 0 1324s # Pool idle thread count: 2, unprocessed jobs: 0 1325s # Pool idle thread count: 2, unprocessed jobs: 0 1325s # Pool idle thread count: 2, unprocessed jobs: 0 1325s # Pool idle thread count: 2, unprocessed jobs: 0 1325s # Pool idle thread count: 2, unprocessed jobs: 0 1326s # Pool idle thread count: 2, unprocessed jobs: 0 1326s # Pool idle thread count: 2, unprocessed jobs: 0 1326s Executing: glib/thread-pool-slow.test 1326s ok 7 /threadpool/idle-time 1326s # slow test /threadpool/idle-time executed in 19.53 secs 1326s # End of threadpool tests 1326s PASS: glib/thread-pool-slow.test 1326s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.1s; maxrss=12288 1327s autopkgtest [10:53:18]: test thread-pool-slow: -----------------------] 1327s autopkgtest [10:53:18]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1327s thread-pool-slow PASS 1327s autopkgtest [10:53:18]: test threadtests: preparing testbed 1328s Reading package lists... 1328s Building dependency tree... 1328s Reading state information... 1328s Starting pkgProblemResolver with broken count: 0 1328s Starting 2 pkgProblemResolver with broken count: 0 1328s Done 1328s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1329s autopkgtest [10:53:20]: test threadtests: [----------------------- 1329s Running test: glib/threadtests.test 1329s TAP version 14 1329s # random seed: R02Se7814cc4ead4ee890d889c09304e595a 1329s 1..5 1329s # Start of GObject tests 1329s ok 1 /GObject/threaded-object-init 1331s ok 2 /GObject/threaded-weak-ref 1331s # slow test /GObject/threaded-weak-ref executed in 1.12 secs 1331s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1331s # /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 1331s ok 3 /GObject/threaded-toggle-notify 1331s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1331s # Start of threaded-weak-ref tests 1331s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1331s # /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. 1331s ok 5 /GObject/threaded-weak-ref/on-finalization 1331s # End of threaded-weak-ref tests 1331s # End of GObject tests 1331s PASS: glib/threadtests.test 1331s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.1s; system=0.7s; maxrss=4096 1331s autopkgtest [10:53:22]: test threadtests: -----------------------] 1332s threadtests PASS 1332s autopkgtest [10:53:23]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1332s autopkgtest [10:53:23]: test timeout: preparing testbed 1332s Reading package lists... 1333s Building dependency tree... 1333s Reading state information... 1333s Starting pkgProblemResolver with broken count: 0 1333s Starting 2 pkgProblemResolver with broken count: 0 1333s Done 1333s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1334s autopkgtest [10:53:25]: test timeout: [----------------------- 1334s Running test: glib/timeout.test 1334s TAP version 14 1334s # random seed: R02S3c82aa0701b927ccbb8fc7c387866bb1 1334s 1..5 1334s # Start of timeout tests 1334s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1336s ok 1 /timeout/seconds 1336s # slow test /timeout/seconds executed in 2.10 secs 1338s ok 2 /timeout/seconds-once 1338s # slow test /timeout/seconds-once executed in 2.10 secs 1338s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1339s Executing: glib/timeout.test 1340s ok 3 /timeout/weeks-overflow 1340s # slow test /timeout/weeks-overflow executed in 2.10 secs 1340s ok 4 /timeout/far-future-ready-time 1344s Executing: glib/timeout.test 1349s Executing: glib/timeout.test 1351s ok 5 /timeout/rounding 1351s # slow test /timeout/rounding executed in 10.56 secs 1351s # End of timeout tests 1351s PASS: glib/timeout.test 1351s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1351s autopkgtest [10:53:42]: test timeout: -----------------------] 1352s timeout PASS 1352s autopkgtest [10:53:43]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1352s autopkgtest [10:53:43]: test timer: preparing testbed 1352s Reading package lists... 1353s Building dependency tree... 1353s Reading state information... 1353s Starting pkgProblemResolver with broken count: 0 1353s Starting 2 pkgProblemResolver with broken count: 0 1353s Done 1353s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1354s autopkgtest [10:53:45]: test timer: [----------------------- 1354s Running test: glib/timer.test 1354s TAP version 14 1354s # random seed: R02S68edcbd6ca3780ba9d6e5161bd623921 1354s 1..10 1354s # Start of timer tests 1354s ok 1 /timer/basic 1354s ok 2 /timer/stop 1354s ok 3 /timer/continue 1354s ok 4 /timer/reset 1354s ok 5 /timer/is_active 1354s # End of timer tests 1354s # Start of timeval tests 1354s ok 6 /timeval/add 1354s ok 7 /timeval/from-iso8601 1354s ok 8 /timeval/to-iso8601 1354s # Start of to-iso8601 tests 1354s ok 9 /timeval/to-iso8601/overflow 1354s # End of to-iso8601 tests 1354s # End of timeval tests 1354s # Start of usleep tests 1354s ok 10 /usleep/with-zero-wait 1354s # End of usleep tests 1354s PASS: glib/timer.test 1354s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1355s autopkgtest [10:53:46]: test timer: -----------------------] 1355s autopkgtest [10:53:46]: test timer: - - - - - - - - - - results - - - - - - - - - - 1355s timer PASS 1355s autopkgtest [10:53:46]: test 1065022-futureproofing: preparing testbed 1454s autopkgtest [10:55:25]: testbed dpkg architecture: ppc64el 1454s autopkgtest [10:55:25]: testbed apt version: 3.0.0 1455s autopkgtest [10:55:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1455s autopkgtest [10:55:26]: testbed release detected to be: questing 1455s autopkgtest [10:55:26]: updating testbed package index (apt update) 1456s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1456s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1456s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1456s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1456s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [33.3 kB] 1456s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [1216 kB] 1456s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [130 kB] 1456s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [173 kB] 1457s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [1204 kB] 1457s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [31.7 kB] 1457s Fetched 2899 kB in 1s (2477 kB/s) 1458s Reading package lists... 1459s autopkgtest [10:55:30]: upgrading testbed (apt dist-upgrade and autopurge) 1459s Reading package lists... 1459s Building dependency tree... 1459s Reading state information... 1460s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1460s Starting 2 pkgProblemResolver with broken count: 0 1460s Done 1461s Entering ResolveByKeep 1461s 1461s Calculating upgrade... 1461s The following packages will be upgraded: 1461s libffi8 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 1461s libpython3.13 libpython3.13-minimal libpython3.13-stdlib publicsuffix 1461s python3-dbus python3.13 python3.13-gdbm python3.13-minimal 1461s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1461s Need to get 14.6 MB of archives. 1461s After this operation, 214 kB disk space will be freed. 1461s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13 ppc64el 3.13.3-2 [739 kB] 1462s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13 ppc64el 3.13.3-2 [2544 kB] 1462s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-stdlib ppc64el 3.13.3-2 [2110 kB] 1462s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-minimal ppc64el 3.13.3-2 [2502 kB] 1462s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libpython3.13-minimal ppc64el 3.13.3-2 [886 kB] 1462s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el libffi8 ppc64el 3.4.8-2 [28.1 kB] 1462s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-dbus ppc64el 1.4.0-1 [109 kB] 1462s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el publicsuffix all 20250328.1952-0.1 [135 kB] 1462s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12t64 ppc64el 3.12.10-1 [2558 kB] 1462s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-stdlib ppc64el 3.12.10-1 [2105 kB] 1462s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el libpython3.12-minimal ppc64el 3.12.10-1 [841 kB] 1462s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3.13-gdbm ppc64el 3.13.3-2 [32.3 kB] 1463s Fetched 14.6 MB in 1s (12.3 MB/s) 1463s (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 ... 107204 files and directories currently installed.) 1463s Preparing to unpack .../00-python3.13_3.13.3-2_ppc64el.deb ... 1463s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1463s Preparing to unpack .../01-libpython3.13_3.13.3-2_ppc64el.deb ... 1463s Unpacking libpython3.13:ppc64el (3.13.3-2) over (3.13.3-1) ... 1463s Preparing to unpack .../02-libpython3.13-stdlib_3.13.3-2_ppc64el.deb ... 1463s Unpacking libpython3.13-stdlib:ppc64el (3.13.3-2) over (3.13.3-1) ... 1463s Preparing to unpack .../03-python3.13-minimal_3.13.3-2_ppc64el.deb ... 1463s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1463s Preparing to unpack .../04-libpython3.13-minimal_3.13.3-2_ppc64el.deb ... 1463s Unpacking libpython3.13-minimal:ppc64el (3.13.3-2) over (3.13.3-1) ... 1463s Preparing to unpack .../05-libffi8_3.4.8-2_ppc64el.deb ... 1463s Unpacking libffi8:ppc64el (3.4.8-2) over (3.4.7-1) ... 1463s Preparing to unpack .../06-python3-dbus_1.4.0-1_ppc64el.deb ... 1464s Unpacking python3-dbus (1.4.0-1) over (1.3.2-5build5) ... 1464s Preparing to unpack .../07-publicsuffix_20250328.1952-0.1_all.deb ... 1464s Unpacking publicsuffix (20250328.1952-0.1) over (20250108.1153-0.1) ... 1464s Preparing to unpack .../08-libpython3.12t64_3.12.10-1_ppc64el.deb ... 1464s Unpacking libpython3.12t64:ppc64el (3.12.10-1) over (3.12.8-3) ... 1464s Preparing to unpack .../09-libpython3.12-stdlib_3.12.10-1_ppc64el.deb ... 1464s Unpacking libpython3.12-stdlib:ppc64el (3.12.10-1) over (3.12.8-3) ... 1464s Preparing to unpack .../10-libpython3.12-minimal_3.12.10-1_ppc64el.deb ... 1464s Unpacking libpython3.12-minimal:ppc64el (3.12.10-1) over (3.12.8-3) ... 1464s Preparing to unpack .../11-python3.13-gdbm_3.13.3-2_ppc64el.deb ... 1464s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1464s Setting up python3-dbus (1.4.0-1) ... 1464s Setting up libpython3.12-minimal:ppc64el (3.12.10-1) ... 1464s Setting up libpython3.13-minimal:ppc64el (3.13.3-2) ... 1464s Setting up libffi8:ppc64el (3.4.8-2) ... 1464s Setting up python3.13-minimal (3.13.3-2) ... 1465s Setting up libpython3.13-stdlib:ppc64el (3.13.3-2) ... 1465s Setting up publicsuffix (20250328.1952-0.1) ... 1465s Setting up python3.13-gdbm (3.13.3-2) ... 1465s Setting up libpython3.13:ppc64el (3.13.3-2) ... 1465s Setting up libpython3.12-stdlib:ppc64el (3.12.10-1) ... 1465s Setting up python3.13 (3.13.3-2) ... 1466s Setting up libpython3.12t64:ppc64el (3.12.10-1) ... 1466s Processing triggers for systemd (257.4-1ubuntu3) ... 1467s Processing triggers for man-db (2.13.0-1) ... 1467s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1467s Reading package lists... 1468s Building dependency tree... 1468s Reading state information... 1468s Starting pkgProblemResolver with broken count: 0 1468s Starting 2 pkgProblemResolver with broken count: 0 1468s Done 1468s Solving dependencies... 1469s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1471s Reading package lists... 1472s Building dependency tree... 1472s Reading state information... 1472s Starting pkgProblemResolver with broken count: 0 1472s Starting 2 pkgProblemResolver with broken count: 0 1472s Done 1472s The following NEW packages will be installed: 1472s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1472s libdconf1 1473s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1473s Need to get 149 kB of archives. 1473s After this operation, 830 kB of additional disk space will be used. 1473s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el libdconf1 ppc64el 0.40.0-5 [43.7 kB] 1473s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el dconf-service ppc64el 0.40.0-5 [30.8 kB] 1473s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el dconf-gsettings-backend ppc64el 0.40.0-5 [26.0 kB] 1473s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el dpkg-repack all 1.54 [11.2 kB] 1473s Get:5 http://ftpmaster.internal/ubuntu questing/main ppc64el gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 1473s Fetched 149 kB in 0s (363 kB/s) 1473s Selecting previously unselected package libdconf1:ppc64el. 1473s (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 ... 107204 files and directories currently installed.) 1473s Preparing to unpack .../libdconf1_0.40.0-5_ppc64el.deb ... 1473s Unpacking libdconf1:ppc64el (0.40.0-5) ... 1473s Selecting previously unselected package dconf-service. 1473s Preparing to unpack .../dconf-service_0.40.0-5_ppc64el.deb ... 1473s Unpacking dconf-service (0.40.0-5) ... 1473s Selecting previously unselected package dconf-gsettings-backend:ppc64el. 1473s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_ppc64el.deb ... 1473s Unpacking dconf-gsettings-backend:ppc64el (0.40.0-5) ... 1473s Selecting previously unselected package dpkg-repack. 1473s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1473s Unpacking dpkg-repack (1.54) ... 1474s Selecting previously unselected package gsettings-desktop-schemas. 1474s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 1474s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 1474s Setting up dpkg-repack (1.54) ... 1474s Setting up libdconf1:ppc64el (0.40.0-5) ... 1474s Setting up dconf-service (0.40.0-5) ... 1474s Setting up dconf-gsettings-backend:ppc64el (0.40.0-5) ... 1474s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 1474s Processing triggers for man-db (2.13.0-1) ... 1474s Processing triggers for libglib2.0-0t64:ppc64el (2.84.1-1) ... 1474s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1483s autopkgtest [10:55:54]: test 1065022-futureproofing: [----------------------- 1483s + export DEBIAN_FRONTEND=noninteractive 1483s + n=0 1483s + failed=0 1483s + binary_package=libglib2.0-0t64 1483s + future_binary_package=libglib2.0-0xyz 1483s + pwd 1483s + srcdir=/tmp/autopkgtest.WkW3Wm/build.723/src 1483s + mktemp -d 1483s + tmpdir=/tmp/tmp.neYELA2xS1 1483s + cd /tmp/tmp.neYELA2xS1 1483s + [ -e /tmp/autopkgtest.WkW3Wm/build.723/src/debian/tests/manual/local-1065022.sources ] 1483s + dpkg-query -W dpkg-repack 1483s + dpkg-repack --generate libglib2.0-0t64 1483s dpkg-repack 1.54 1483s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1483s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.LBU01S for libglib2.0-0t64 1483s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.LBU01S ." 1483s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.LBU01S/DEBIAN/control 1483s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.LBU01S/DEBIAN/control 1483s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.LBU01S/DEBIAN/control 1483s + 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.LBU01S/DEBIAN/control 1483s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.LBU01S libglib2.0-0xyz.deb 1483s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1485s + apt-get -y install ./libglib2.0-0xyz.deb 1485s Reading package lists... 1486s Building dependency tree... 1486s Reading state information... 1486s Solving dependencies... 1486s The following packages were automatically installed and are no longer required: 1486s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1486s libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 libinih1 1486s libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 1486s libprotobuf-c1 python3-apport python3-certifi python3-chardet 1486s python3-configobj python3-debconf python3-markdown-it python3-mdurl 1486s python3-openssl python3-passlib python3-problem-report python3-pygments 1486s python3-requests python3-rich python3-systemd python3-urllib3 1486s Use 'sudo apt autoremove' to remove them. 1486s The following additional packages will be installed: 1486s xdg-user-dirs 1486s Suggested packages: 1486s low-memory-monitor 1486s Recommended packages: 1486s shared-mime-info 1486s The following packages will be REMOVED: 1486s apport apport-core-dump-handler bolt cloud-init cloud-init-base 1486s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 1486s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 1486s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 1486s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 1486s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 1486s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 1486s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 1486s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 1486s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 1486s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 1486s The following NEW packages will be installed: 1486s libglib2.0-0xyz xdg-user-dirs 1486s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 1486s Need to get 20.1 kB/1823 kB of archives. 1486s After this operation, 40.1 MB disk space will be freed. 1486s Get:1 /tmp/tmp.neYELA2xS1/libglib2.0-0xyz.deb libglib2.0-0xyz ppc64el 2.84.1-1 [1803 kB] 1486s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el xdg-user-dirs ppc64el 0.18-2 [20.1 kB] 1486s Fetched 20.1 kB in 0s (97.5 kB/s) 1487s (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 ... 107273 files and directories currently installed.) 1487s Removing bolt (0.9.8-1) ... 1487s Removing cloud-init (25.2~1g7a0265d3-0ubuntu1) ... 1487s Removing cloud-init-base (25.2~1g7a0265d3-0ubuntu1) ... 1487s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 1487s Removing dconf-gsettings-backend:ppc64el (0.40.0-5) ... 1488s Removing dconf-service (0.40.0-5) ... 1488s Removing fwupd (2.0.8-3) ... 1488s Removing networkd-dispatcher (2.2.4-1.1) ... 1488s Removing udisks2 (2.10.1-11ubuntu2) ... 1489s Removing libblockdev-crypto3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-fs3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-loop3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-mdraid3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-nvme3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-part3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-swap3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev3:ppc64el (3.3.0-2) ... 1489s Removing libblockdev-utils3:ppc64el (3.3.0-2) ... 1489s Removing libdconf1:ppc64el (0.40.0-5) ... 1489s Removing libfwupd3:ppc64el (2.0.8-3) ... 1489s Removing shared-mime-info (2.4-5build1) ... 1489s Removing xfsprogs (6.13.0-2ubuntu1) ... 1490s Removing python3-dbus (1.4.0-1) ... 1490s Removing libgudev-1.0-0:ppc64el (1:238-6) ... 1490s Removing libjcat1:ppc64el (0.2.3-1) ... 1490s Removing libjson-glib-1.0-0:ppc64el (1.10.6+ds-2) ... 1490s Removing libqmi-proxy (1.36.0-1) ... 1490s Removing libqmi-glib5:ppc64el (1.36.0-1) ... 1490s Removing libmbim-proxy (1.32.0-1) ... 1490s Removing libmbim-glib4:ppc64el (1.32.0-1) ... 1490s Removing libmm-glib0:ppc64el (1.23.4-0ubuntu3) ... 1490s Removing ubuntu-minimal (1.549) ... 1490s Removing netplan.io (1.1.2-2ubuntu1) ... 1490s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 1490s Removing python3-netplan (1.1.2-2ubuntu1) ... 1490s Removing netplan-generator (1.1.2-2ubuntu1) ... 1490s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 1490s Removing libnetplan1:ppc64el (1.1.2-2ubuntu1) ... 1490s Removing libpolkit-agent-1-0:ppc64el (126-2) ... 1490s Removing libpolkit-gobject-1-0:ppc64el (126-2) ... 1491s Removing libqrtr-glib0:ppc64el (1.2.2-1ubuntu4) ... 1491s Removing libudisks2-0:ppc64el (2.10.1-11ubuntu2) ... 1491s Removing libvolume-key1:ppc64el (0.3.12-9) ... 1491s Removing libxmlb2:ppc64el (0.3.22-1) ... 1491s Removing apport (2.32.0-0ubuntu5) ... 1491s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 1492s Removing python3-gi (3.50.0-4build1) ... 1492s Removing gir1.2-girepository-2.0:ppc64el (1.84.0-1) ... 1492s Removing gir1.2-glib-2.0:ppc64el (2.84.1-1) ... 1492s Removing libgirepository-1.0-1:ppc64el (1.84.0-1) ... 1492s Removing libglib2.0-0t64:ppc64el (2.84.1-1) ... 1492s Selecting previously unselected package libglib2.0-0xyz:ppc64el. 1492s (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 ... 106130 files and directories currently installed.) 1492s Preparing to unpack .../libglib2.0-0xyz.deb ... 1492s Unpacking libglib2.0-0xyz:ppc64el (2.84.1-1) ... 1492s Selecting previously unselected package xdg-user-dirs. 1492s Preparing to unpack .../xdg-user-dirs_0.18-2_ppc64el.deb ... 1492s Unpacking xdg-user-dirs (0.18-2) ... 1492s Setting up xdg-user-dirs (0.18-2) ... 1492s Setting up libglib2.0-0xyz:ppc64el (2.84.1-1) ... 1492s No schema files found: removed existing output file. 1492s Processing triggers for dbus (1.16.2-2ubuntu1) ... 1492s Processing triggers for initramfs-tools (0.147ubuntu1) ... 1492s update-initramfs: Generating /boot/initrd.img-6.14.0-15-generic 1492s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 1501s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1502s Processing triggers for man-db (2.13.0-1) ... 1503s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1503s not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1503s not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1503s not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1503s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1503s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1503s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1503s + n=1 1503s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1503s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1503s + failed=1 1503s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1503s + n=2 1503s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1503s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1503s + failed=1 1503s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1503s + n=3 1503s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1503s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1503s + failed=1 1503s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1503s + n=4 1503s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1503s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1503s + failed=1 1503s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1503s + n=5 1503s + test -e /usr/lib/*/gio/modules/giomodule.cache 1503s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1503s + failed=1 1503s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1503s + n=6 1503s + test -s /usr/lib/*/gio/modules/giomodule.cache 1503s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1503s + failed=1 1503s + apt-get -y purge libglib2.0-0t64 1503s Reading package lists... 1503s Building dependency tree... 1503s Reading state information... 1503s The following packages were automatically installed and are no longer required: 1503s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1503s libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 libinih1 1503s libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 1503s libprotobuf-c1 python3-apport python3-certifi python3-chardet 1503s python3-configobj python3-debconf python3-markdown-it python3-mdurl 1503s python3-openssl python3-passlib python3-problem-report python3-pygments 1503s python3-requests python3-rich python3-systemd python3-urllib3 1503s Use 'sudo apt autoremove' to remove them. 1503s The following packages will be REMOVED: 1503s libglib2.0-0t64* 1503s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1503s After this operation, 0 B of additional disk space will be used. 1503s (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 ... 106165 files and directories currently installed.) 1503s Purging configuration files for libglib2.0-0t64:ppc64el (2.84.1-1) ... 1504s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1504s not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1504s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1504s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1504s + n=7 1504s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1504s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1504s + failed=1 1504s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1504s + n=8 1504s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1504s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1504s + failed=1 1504s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1504s + n=9 1504s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1504s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1504s + failed=1 1504s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1504s + n=10 1504s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1504s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1504s + failed=1 1504s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1504s + n=11 1504s + test -e /usr/lib/*/gio/modules/giomodule.cache 1504s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1504s + failed=1 1504s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1504s + n=12 1504s + test -s /usr/lib/*/gio/modules/giomodule.cache 1504s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1504s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1504s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1504s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1504s + failed=1 1504s + apt-get -y purge libglib2.0-0xyz 1504s Reading package lists... 1504s Building dependency tree... 1504s Reading state information... 1504s The following packages were automatically installed and are no longer required: 1504s apport-symptoms exfatprogs jq libatasmart4 libatomic1 libbytesize-common 1504s libbytesize1 libdrm-amdgpu1 libflashrom1 libftdi1-2 libglib2.0-data 1504s libgpgme11t64 libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 1504s libnss3 libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-certifi 1504s python3-chardet python3-configobj python3-debconf python3-markdown-it 1504s python3-mdurl python3-openssl python3-passlib python3-problem-report 1504s python3-pygments python3-requests python3-rich python3-systemd 1504s python3-urllib3 xdg-user-dirs 1504s Use 'sudo apt autoremove' to remove them. 1504s The following packages will be REMOVED: 1504s libglib2.0-0xyz* 1504s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1504s After this operation, 6086 kB disk space will be freed. 1504s (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 ... 106165 files and directories currently installed.) 1504s Removing libglib2.0-0xyz:ppc64el (2.84.1-1) ... 1504s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1505s (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 ... 106140 files and directories currently installed.) 1505s Purging configuration files for libglib2.0-0xyz:ppc64el (2.84.1-1) ... 1505s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1505s ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1505s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1505s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1505s 1..16 1505s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1505s + n=13 1505s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1505s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1505s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1505s + n=14 1505s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1505s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1505s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 1505s + n=15 1505s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1505s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1505s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 1505s + n=16 1505s + test -e /usr/lib/*/gio/modules/giomodule.cache 1505s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1505s + echo 1..16 1505s + exit 1 1505s autopkgtest [10:56:16]: test 1065022-futureproofing: -----------------------] 1506s 1065022-futureproofing FLAKY non-zero exit status 1 1506s autopkgtest [10:56:17]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1506s autopkgtest [10:56:17]: @@@@@@@@@@@@@@@@@@@@ summary 1506s build PASS (superficial) 1506s build-static PASS (superficial) 1506s girepository-tools PASS (superficial) 1506s libgio-2.0-dev-bin PASS (superficial) 1506s libglib2.0-dev PASS (superficial) 1506s installed-tests PASS 1506s closure-refcount PASS 1506s debugcontroller PASS 1506s gdbus-server-auth PASS 1506s gdbus-threading PASS 1506s gmenumodel PASS 1506s mainloop PASS 1506s memory-monitor-dbus PASS 1506s socket PASS 1506s testfilemonitor PASS 1506s thread-pool-slow PASS 1506s threadtests PASS 1506s timeout PASS 1506s timer PASS 1506s 1065022-futureproofing FLAKY non-zero exit status 1 1523s nova [W] Using flock in prodstack6-ppc64el 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for bc6242df-b55c-44d9-86bb-3bdb260119dc to get deleted. 1523s nova [W] Using flock in prodstack6-ppc64el 1523s flock: timeout while waiting to get lock 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for 1669c7ec-89c5-4add-bc84-f1467f943571 to get deleted. 1523s nova [W] Using flock in prodstack6-ppc64el 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for c3bafcaf-3338-477b-a383-0a507b88cec4 to get deleted. 1523s nova [W] Using flock in prodstack6-ppc64el 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for 2de1eeac-7fcd-4d85-8be4-bfe4f916ae71 to get deleted. 1523s nova [W] Using flock in prodstack6-ppc64el 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for 4c325812-ea4e-4f16-9f90-c6f393c7c0c6 to get deleted. 1523s nova [W] Using flock in prodstack6-ppc64el 1523s Creating nova instance adt-questing-ppc64el-glib2.0-20250504-094237-juju-7f2275-prod-proposed-migration-environment-2-ae28d2a2-a17e-41ee-8ed4-991019ad94a7 from image adt/ubuntu-questing-ppc64el-server-20250504.img (UUID 65e029e2-4bd9-4b30-b646-f26a73cdeb97)... 1523s nova [W] Timed out waiting for 9b1f1a14-a9a9-41b1-bc67-4803f9ad3911 to get deleted.